Add zlib-ng library
This commit is contained in:
@@ -37,3 +37,6 @@
|
|||||||
[submodule "lib/zstd-nginx-module"]
|
[submodule "lib/zstd-nginx-module"]
|
||||||
path = lib/zstd-nginx-module
|
path = lib/zstd-nginx-module
|
||||||
url = https://github.com/tokers/zstd-nginx-module
|
url = https://github.com/tokers/zstd-nginx-module
|
||||||
|
[submodule "lib/zlib-ng"]
|
||||||
|
path = lib/zlib-ng
|
||||||
|
url = https://github.com/zlib-ng/zlib-ng
|
||||||
@@ -41,20 +41,20 @@ if [ ! -f "lib/pcre/configure" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
### ZLIB reconf
|
### ZLIB reconf
|
||||||
if [ "$BITCHK" = 64 ]; then
|
#if [ "$BITCHK" = 64 ]; then
|
||||||
if [ ! -f "lib/zlib/Makefile" ]; then
|
# if [ ! -f "lib/zlib/Makefile" ]; then
|
||||||
cd lib/zlib
|
# cd lib/zlib
|
||||||
./configure --64
|
# ./configure --64
|
||||||
cd ../..
|
# cd ../..
|
||||||
fi
|
# fi
|
||||||
else
|
#else
|
||||||
if [ ! -f "lib/zlib_x86/Makefile" ]; then
|
# if [ ! -f "lib/zlib_x86/Makefile" ]; then
|
||||||
git submodule add --force https://github.com/madler/zlib.git lib/zlib_x86
|
# git submodule add --force https://github.com/madler/zlib.git lib/zlib_x86
|
||||||
cd lib/zlib_x86
|
# cd lib/zlib_x86
|
||||||
./configure
|
# ./configure
|
||||||
cd ../..
|
# cd ../..
|
||||||
fi
|
# fi
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
### PSOL Download (PageSpeed)
|
### PSOL Download (PageSpeed)
|
||||||
if [ ! -d "lib/pagespeed" ] && [ "$PAGESPEED" = 1 ]; then
|
if [ ! -d "lib/pagespeed" ] && [ "$PAGESPEED" = 1 ]; then
|
||||||
@@ -74,7 +74,8 @@ fi
|
|||||||
|
|
||||||
### x86, x64 Check (Configuration)
|
### x86, x64 Check (Configuration)
|
||||||
if [ "$BITCHK" = 64 ]; then
|
if [ "$BITCHK" = 64 ]; then
|
||||||
BUILD_BIT="-m64 "
|
# Temporary remove
|
||||||
|
#BUILD_BIT="-m64 "
|
||||||
BUILD_ZLIB="./lib/zlib"
|
BUILD_ZLIB="./lib/zlib"
|
||||||
BUILD_LD="-lrt -ljemalloc -Wl,-z,relro -Wl,-z,now -fPIC"
|
BUILD_LD="-lrt -ljemalloc -Wl,-z,relro -Wl,-z,now -fPIC"
|
||||||
else
|
else
|
||||||
|
|||||||
+7
-7
@@ -52,7 +52,7 @@ END
|
|||||||
|
|
||||||
$ZLIB/libz.a: $NGX_MAKEFILE
|
$ZLIB/libz.a: $NGX_MAKEFILE
|
||||||
cd $ZLIB \\
|
cd $ZLIB \\
|
||||||
&& \$(MAKE) distclean \\
|
&& \$(MAKE) clean \\
|
||||||
&& \$(MAKE) -f win32/Makefile.gcc \\
|
&& \$(MAKE) -f win32/Makefile.gcc \\
|
||||||
CFLAGS="$ZLIB_OPT" CC="\$(CC)" \\
|
CFLAGS="$ZLIB_OPT" CC="\$(CC)" \\
|
||||||
libz.a
|
libz.a
|
||||||
@@ -75,10 +75,10 @@ END
|
|||||||
|
|
||||||
$ZLIB/libz.a: $NGX_MAKEFILE
|
$ZLIB/libz.a: $NGX_MAKEFILE
|
||||||
cd $ZLIB \\
|
cd $ZLIB \\
|
||||||
&& \$(MAKE) distclean \\
|
&& \$(MAKE) clean \\
|
||||||
&& cp contrib/asm586/match.S . \\
|
&& cp contrib/asm586/match.S . \\
|
||||||
&& CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
|
&& CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
|
||||||
./configure \\
|
./configure --zlib-compat \\
|
||||||
&& \$(MAKE) OBJA=match.o libz.a
|
&& \$(MAKE) OBJA=match.o libz.a
|
||||||
|
|
||||||
END
|
END
|
||||||
@@ -92,10 +92,10 @@ END
|
|||||||
|
|
||||||
$ZLIB/libz.a: $NGX_MAKEFILE
|
$ZLIB/libz.a: $NGX_MAKEFILE
|
||||||
cd $ZLIB \\
|
cd $ZLIB \\
|
||||||
&& \$(MAKE) distclean \\
|
&& \$(MAKE) clean \\
|
||||||
&& cp contrib/asm686/match.S . \\
|
&& cp contrib/asm686/match.S . \\
|
||||||
&& CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
|
&& CFLAGS="$ZLIB_OPT -DASMV" CC="\$(CC)" \\
|
||||||
./configure \\
|
./configure --zlib-compat \\
|
||||||
&& \$(MAKE) OBJA=match.o libz.a
|
&& \$(MAKE) OBJA=match.o libz.a
|
||||||
|
|
||||||
END
|
END
|
||||||
@@ -125,9 +125,9 @@ if [ $done = NO ]; then
|
|||||||
|
|
||||||
$ZLIB/libz.a: $NGX_MAKEFILE
|
$ZLIB/libz.a: $NGX_MAKEFILE
|
||||||
cd $ZLIB \\
|
cd $ZLIB \\
|
||||||
&& \$(MAKE) distclean \\
|
&& \$(MAKE) clean \\
|
||||||
&& CFLAGS="$ZLIB_OPT" CC="\$(CC)" \\
|
&& CFLAGS="$ZLIB_OPT" CC="\$(CC)" \\
|
||||||
./configure \\
|
./configure --zlib-compat \\
|
||||||
&& \$(MAKE) libz.a
|
&& \$(MAKE) libz.a
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|||||||
Reference in New Issue
Block a user