Add zlib-ng library

This commit is contained in:
2023-10-15 00:12:29 +09:00
parent d47eb11823
commit 90a56a267a
3 changed files with 26 additions and 22 deletions
+16 -15
View File
@@ -41,20 +41,20 @@ if [ ! -f "lib/pcre/configure" ]; then
fi
### ZLIB reconf
if [ "$BITCHK" = 64 ]; then
if [ ! -f "lib/zlib/Makefile" ]; then
cd lib/zlib
./configure --64
cd ../..
fi
else
if [ ! -f "lib/zlib_x86/Makefile" ]; then
git submodule add --force https://github.com/madler/zlib.git lib/zlib_x86
cd lib/zlib_x86
./configure
cd ../..
fi
fi
#if [ "$BITCHK" = 64 ]; then
# if [ ! -f "lib/zlib/Makefile" ]; then
# cd lib/zlib
# ./configure --64
# cd ../..
# fi
#else
# if [ ! -f "lib/zlib_x86/Makefile" ]; then
# git submodule add --force https://github.com/madler/zlib.git lib/zlib_x86
# cd lib/zlib_x86
# ./configure
# cd ../..
# fi
#fi
### PSOL Download (PageSpeed)
if [ ! -d "lib/pagespeed" ] && [ "$PAGESPEED" = 1 ]; then
@@ -74,7 +74,8 @@ fi
### x86, x64 Check (Configuration)
if [ "$BITCHK" = 64 ]; then
BUILD_BIT="-m64 "
# Temporary remove
#BUILD_BIT="-m64 "
BUILD_ZLIB="./lib/zlib"
BUILD_LD="-lrt -ljemalloc -Wl,-z,relro -Wl,-z,now -fPIC"
else