Use TARGET_TRIPLET instead of hard-coded x86_64-linux-gnu

Test: gmp,mssql,pdo_dblib
pull/221/head
Michele Locati 2020-12-14 16:52:00 +01:00
parent 35feca8b12
commit 67afc0d2a4
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 2 additions and 2 deletions

View File

@ -1067,7 +1067,7 @@ installBundledModule() {
gmp)
if test $PHP_MAJMIN_VERSION -le 506; then
if ! test -f /usr/include/gmp.h; then
ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
ln -s /usr/include/$TARGET_TRIPLET/gmp.h /usr/include/gmp.h
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/include/gmp.h"
fi
fi
@ -1113,7 +1113,7 @@ installBundledModule() {
;;
mssql | pdo_dblib)
if ! test -f /usr/lib/libsybdb.so; then
ln -s /usr/lib/x86_64-linux-gnu/libsybdb.so /usr/lib/libsybdb.so
ln -s /usr/lib/$TARGET_TRIPLET/libsybdb.so /usr/lib/libsybdb.so
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/lib/libsybdb.so"
fi
;;