From 9dafbb7b1274e70ac2f51531ed3276295e0271b5 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 26 Jul 2024 01:53:03 +0300 Subject: [PATCH] disable ldconfig --- INSTALL.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/INSTALL.sh b/INSTALL.sh index 6b77879d..cee6bd4b 100755 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -160,6 +160,9 @@ sed -i "/PHP_CONFIG = /c\ sed -i "/INSTALL_PREFIX = /c\ INSTALL_PREFIX = \"$DIR_PHP_CPP_TARGET\"" "$DIR_PHP_CPP_SOURCE/Makefile" +## Disable ldconfig +sed -i "s/ldconfig;/@echo \"ldconfig disabled by local configuration\";/g" "$DIR_PHP_CPP_SOURCE/Makefile" + ## Force build for new installation if [ ! -d "$DIR_PHP_CPP_TARGET" ]; then BUILD_PHP_CPP="y" else # or ask for re-build @@ -195,12 +198,13 @@ cd "$DIR_PHP_GTK_SOURCE" ## Get repository updates git pull -## Replace installation paths in PHP-GTK Makefile +## Replace installation paths sed -i "/EXTENSION_DIR = /c\ EXTENSION_DIR = \"$($DIR_PHP_SRC_TARGET/bin/php-config --extension-dir)\"" "$DIR_PHP_GTK_SOURCE/Makefile" +## Disable INI sed -i "/INI_DIR = /c\ - INI_DIR = \"/dev/null\"" "$DIR_PHP_GTK_SOURCE/Makefile" + INI_DIR = /dev/null" "$DIR_PHP_GTK_SOURCE/Makefile" ## Force build for new installation if [ ! -f "$("$DIR_PHP_SRC_TARGET/bin/php-config" --extension-dir)/php-gtk3.so" ]; then BUILD_PHP_GTK="y"