Skip to content

Commit cd05a8a

Browse files
committed
Tweak libsodium config flag for PHP versions 7.4 and up,
1 parent c021b75 commit cd05a8a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/install-libsodium

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ make install
2121
popd
2222

2323
# add the option in custom_configure_options
24-
echo "--with-sodium=$LIBSODIUM_INSTALL_DIR" >> $TRAVIS_BUILD_DIR/custom_configure_options
24+
if [[ "$(printf "7.4\n$VERSION" | sort -V | head -n1)" < "7.4" ]]; then
25+
echo "--with-sodium=$LIBSODIUM_INSTALL_DIR" >> $TRAVIS_BUILD_DIR/custom_configure_options
26+
else
27+
echo "--with-libsodium=$LIBSODIUM_INSTALL_DIR" >> $TRAVIS_BUILD_DIR/custom_configure_options
28+
fi

0 commit comments

Comments
 (0)