Skip to content
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

Add PHP_ADDITIONAL_CONFIG_OPTIONS #154

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ PHP_WITHOUT_PEAR=yes asdf install php <version>
Check [asdf](https://github.com/asdf-vm/asdf) readme for instructions on how to
install & manage versions.

### Pass additional ./configure options in the build process

Set the PHP_ADDITIONAL_CONFIG_OPTIONS env var with the additional options to add them to the ./configure call when asdf builds PHP:

Example:
```shell
PHP_ADDITIONAL_CONFIG_OPTIONS="--with-password-argon2" asdf install php latest
```

## Global Composer Dependencies

Composer is installed globally by default. To use it, you'll need to reshim:
Expand Down
4 changes: 4 additions & 0 deletions bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ construct_configure_options() {
configure_options="$configure_options --without-pcre-jit"
fi

if [ "$PHP_ADDITIONAL_CONFIG_OPTIONS" != "" ]; then
configure_options="$configure_options $PHP_ADDITIONAL_CONFIG_OPTIONS"
fi

echo "$configure_options"
}

Expand Down