From 67afc0d2a457ad706aff633f3e4e995b8c7124c2 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 14 Dec 2020 16:52:00 +0100 Subject: [PATCH] Use TARGET_TRIPLET instead of hard-coded x86_64-linux-gnu Test: gmp,mssql,pdo_dblib --- install-php-extensions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-php-extensions b/install-php-extensions index 9ef5034..812538b 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -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 ;;