From dd6ba45cdd8853ff4d3fef78e97c76220a7a1ee7 Mon Sep 17 00:00:00 2001 From: dami Date: Wed, 17 Jun 2026 17:39:36 +0800 Subject: [PATCH] Update gd_old.sh --- plugins/php/versions/common/gd_old.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/plugins/php/versions/common/gd_old.sh b/plugins/php/versions/common/gd_old.sh index 685468363..13e6d973d 100755 --- a/plugins/php/versions/common/gd_old.sh +++ b/plugins/php/versions/common/gd_old.sh @@ -82,13 +82,18 @@ Install_lib() OPTIONS="$OPTIONS --with-xpm-dir" fi - if [ "debian" == "$OSNAME" ]; then - OPTIONS="$OPTIONS --with-freetype" - else - find_ft2=`pkg-config --list-all | grep freetype2` - if [ "$find_ft2" == "" ];then - OPTIONS="$OPTIONS --with-freetype-dir=${serverPath}/lib/freetype_old" - fi + # if [ "debian" == "$OSNAME" ]; then + # OPTIONS="$OPTIONS --with-freetype" + # else + # find_ft2=`pkg-config --list-all | grep freetype2` + # if [ "$find_ft2" != "" ];then + # OPTIONS="$OPTIONS --with-freetype-dir=${serverPath}/lib/freetype_old" + # fi + # fi + + find_ft2=`pkg-config --list-all | grep freetype2` + if [ "$find_ft2" != "" ];then + OPTIONS="$OPTIONS --with-freetype-dir=${serverPath}/lib/freetype_old" fi #--with-xpm