-
Notifications
You must be signed in to change notification settings - Fork 73
Improve --with-libdir handling #741
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestmaintainer investigatingThis ticket is being investigated by maintainers. Please check with us before contributing PRs etc!This ticket is being investigated by maintainers. Please check with us before contributing PRs etc!
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestmaintainer investigatingThis ticket is being investigated by maintainers. Please check with us before contributing PRs etc!This ticket is being investigated by maintainers. Please check with us before contributing PRs etc!
The discussion below (#740) describes a confusing onboarding process when someone using an old RHEL; best I can determine is it seems the root cause is the
PHP_LIBDIRis not correct when building an extension; even though thephpwas built with the correct path (--with-libdir).PIE doesn't currently expose a generic
--with-libdiroption, but it likely should do since this applies to all builds.Additionally, I think the experience could be improved by checking
php-config --configure-optionsif a--with-libdirwas specified when building PHP originally; if this was specified, then it could be used to specify this correctly. Explicitly providing--with-libdirto PIE would take precedence over the detection.Discussed in #740
Originally posted by utdrmac September 21, 2026