Skip to content

Autotools: Document PHP environment build configuration vars #15684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

petk
Copy link
Member

@petk petk commented Sep 1, 2024

This is the first part of the #12050. I'm making these in a separate pull request because I'm still rechecking other remaining variables (EXTENSION_DIR, EXTRA_INCLUDES, EXTRA_CFLAGS, and EXTRA_LDFLAGS) if they can be done a bit differently.

So, this marks the following environment variables as precious:

  • PHP_BUILD_ARCH
  • PHP_BUILD_COMPILER
  • PHP_BUILD_PROVIDER
  • PHP_BUILD_SYSTEM
  • PHP_UNAME

Meaning, they are now also shown in the ./configure --help output, and they can be used like this when configuring the PHP build:

./configure PHP_BUILD_ARCH="..." PHP_BUILD_COMPILER="..."  ...

This marks the following environment variables as precious:

- PHP_BUILD_ARCH
- PHP_BUILD_COMPILER
- PHP_BUILD_PROVIDER
- PHP_BUILD_SYSTEM
- PHP_UNAME

Meaning, they are now also shown in the `./configure --help` output, and
they can be used like this when configuring the PHP build:

    ./configure PHP_BUILD_ARCH="..." PHP_BUILD_COMPILER="..."  ...
@petk
Copy link
Member Author

petk commented Sep 1, 2024

I'll recheck if everything is fine here and merge coming up here soon.

@petk petk merged commit 8699da6 into php:master Sep 1, 2024
10 checks passed
@petk petk deleted the patch-arg-vars-PHP branch September 1, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant