Skip to content

Improve --with-libdir handling #741

Description

@asgrim

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_LIBDIR is not correct when building an extension; even though the php was built with the correct path (--with-libdir).

PIE doesn't currently expose a generic --with-libdir option, but it likely should do since this applies to all builds.

Additionally, I think the experience could be improved by checking php-config --configure-options if a --with-libdir was specified when building PHP originally; if this was specified, then it could be used to specify this correctly. Explicitly providing --with-libdir to PIE would take precedence over the detection.

Discussed in #740

Originally posted by utdrmac September 21, 2026

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestmaintainer investigatingThis ticket is being investigated by maintainers. Please check with us before contributing PRs etc!

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions