Skip to content

Commit

Permalink
Update the PHP installer to add new linker configs for new versions o…
Browse files Browse the repository at this point in the history
…f openssl.
  • Loading branch information
patrickcarlohickman committed Feb 2, 2024
1 parent 4dae5e2 commit f00f642
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup/installers/install-php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@ if version_compare "${PHP_VERSION_COMPARE}" "lt" "8.1.0"; then
make install
cd -
rm -rf "${OPENSSL_TMP}"

# Add a new linker config with the new openssl lib directory. Without
# this, the new openssl executable can't find the shared libraries.
cat << EOF > "/etc/ld.so.conf.d/openssl-${OPENSSL_VERSION_INSTALL}.conf"
${OPENSSL_PREFIX}/lib
EOF
ldconfig
fi

if [[ -n "${USE_CUSTOM_OPENSSL}" ]]; then
Expand Down

0 comments on commit f00f642

Please sign in to comment.