2015-10-30 13:29:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-12-23 22:46:05 +00:00
|
|
|
PCRE=pcre-8.38
|
|
|
|
ZLIB=zlib-1.2.8
|
|
|
|
OPENSSL=openssl-1.0.2e
|
|
|
|
|
2015-10-30 13:29:48 +00:00
|
|
|
rm -rf objs || exit 1
|
|
|
|
mkdir -p objs/lib || exit 1
|
|
|
|
cd objs/lib || exit 1
|
|
|
|
ls ../../..
|
2015-12-23 22:46:05 +00:00
|
|
|
tar -xf ../../../$OPENSSL.tar.gz
|
|
|
|
tar -xf ../../../$ZLIB.tar.gz
|
|
|
|
tar -xf ../../../$PCRE.tar.gz
|
2015-10-30 13:29:48 +00:00
|
|
|
cd ../..
|
|
|
|
|
|
|
|
#--with-openssl-opt="no-asm" \
|
|
|
|
|
|
|
|
./configure --with-cc=gcc --with-ipv6 --prefix= \
|
|
|
|
--with-cc-opt='-DFD_SETSIZE=1024' \
|
|
|
|
--sbin-path=nginx.exe \
|
|
|
|
--with-ipv6 \
|
|
|
|
--with-pcre-jit \
|
2015-12-23 22:46:05 +00:00
|
|
|
--with-http_stub_status_module \
|
|
|
|
--with-http_realip_module \
|
|
|
|
--with-stream \
|
|
|
|
--with-stream_ssl_module \
|
|
|
|
--with-http_addition_module \
|
|
|
|
--with-http_sub_module \
|
2015-10-30 13:29:48 +00:00
|
|
|
--with-luajit-xcflags="-DLUAJIT_NUMMODE=2 -DLUAJIT_ENABLE_LUA52COMPAT" \
|
2015-12-23 22:46:05 +00:00
|
|
|
--with-pcre=objs/lib/$PCRE \
|
|
|
|
--with-zlib=objs/lib/$ZLIB \
|
|
|
|
--with-openssl=objs/lib/$OPENSSL \
|
2015-10-30 13:29:48 +00:00
|
|
|
--with-select_module -j5 || exit 1
|
|
|
|
#gmake -j5
|
|
|
|
make || exit 1
|
|
|
|
make install
|