2015-10-30 13:29:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-03-19 21:15:16 +00:00
|
|
|
PCRE=pcre-8.44
|
2017-03-20 04:15:52 +00:00
|
|
|
ZLIB=zlib-1.2.11
|
2020-03-20 02:39:08 +00:00
|
|
|
OPENSSL=openssl-1.1.1d
|
2018-04-22 18:38:17 +00:00
|
|
|
JOBS=12
|
2015-12-23 22:46:05 +00:00
|
|
|
|
2020-03-20 02:39:08 +00:00
|
|
|
# wget https://www.openssl.org/source/openssl-1.1.1d.tar.gz
|
2017-04-09 02:20:30 +00:00
|
|
|
# wget http://zlib.net/zlib-1.2.11.tar.gz
|
2020-03-19 21:15:16 +00:00
|
|
|
# wget https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz
|
2017-04-09 02:20:30 +00:00
|
|
|
|
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 ../../..
|
2016-08-24 21:11:30 +00:00
|
|
|
tar -xf ../../../$OPENSSL.tar.gz || exit 1
|
|
|
|
tar -xf ../../../$ZLIB.tar.gz || exit 1
|
|
|
|
tar -xf ../../../$PCRE.tar.gz || exit 1
|
2015-10-30 13:29:48 +00:00
|
|
|
cd ../..
|
|
|
|
|
2016-08-24 21:11:30 +00:00
|
|
|
cd objs/lib/$OPENSSL || exit 1
|
2020-03-19 22:30:03 +00:00
|
|
|
#patch -p1 < ../../../patches/openssl-1.1.0j-parallel_build_fix.patch || exit 1
|
2020-03-20 02:47:00 +00:00
|
|
|
patch -p1 < ../../../patches/openssl-1.1.1c-sess_set_get_cb_yield.patch || exit 1
|
2020-03-20 03:05:20 +00:00
|
|
|
patch -p1 < ../../../patches/openssl-1.1.1d-win_fix.patch || exit 1
|
2020-03-20 02:47:00 +00:00
|
|
|
#patch -p1 < ../../../patches/openssl-1.1.1e-sess_set_get_cb_yield.patch || exit 1
|
2016-08-24 21:11:30 +00:00
|
|
|
cd ../../..
|
|
|
|
|
2015-10-30 13:29:48 +00:00
|
|
|
#--with-openssl-opt="no-asm" \
|
|
|
|
|
2016-08-26 21:35:19 +00:00
|
|
|
./configure \
|
|
|
|
--with-cc=gcc \
|
|
|
|
--with-ipv6 \
|
|
|
|
--prefix= \
|
2015-10-30 13:29:48 +00:00
|
|
|
--with-cc-opt='-DFD_SETSIZE=1024' \
|
|
|
|
--sbin-path=nginx.exe \
|
|
|
|
--with-pcre-jit \
|
2016-08-26 20:16:54 +00:00
|
|
|
--without-http_rds_json_module \
|
|
|
|
--without-http_rds_csv_module \
|
|
|
|
--without-lua_rds_parser \
|
|
|
|
--with-ipv6 \
|
2015-12-23 22:46:05 +00:00
|
|
|
--with-stream \
|
|
|
|
--with-stream_ssl_module \
|
2018-04-22 03:37:31 +00:00
|
|
|
--with-stream_ssl_preread_module \
|
2016-08-26 20:16:54 +00:00
|
|
|
--with-http_v2_module \
|
|
|
|
--without-mail_pop3_module \
|
|
|
|
--without-mail_imap_module \
|
|
|
|
--without-mail_smtp_module \
|
|
|
|
--with-http_stub_status_module \
|
|
|
|
--with-http_realip_module \
|
2015-12-23 22:46:05 +00:00
|
|
|
--with-http_addition_module \
|
2016-08-26 20:16:54 +00:00
|
|
|
--with-http_auth_request_module \
|
|
|
|
--with-http_secure_link_module \
|
|
|
|
--with-http_random_index_module \
|
|
|
|
--with-http_gzip_static_module \
|
2015-12-23 22:46:05 +00:00
|
|
|
--with-http_sub_module \
|
2016-08-26 20:16:54 +00:00
|
|
|
--with-http_dav_module \
|
|
|
|
--with-http_flv_module \
|
|
|
|
--with-http_mp4_module \
|
|
|
|
--with-http_gunzip_module \
|
2016-08-26 21:35:19 +00:00
|
|
|
--with-select_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 \
|
2018-04-22 02:00:45 +00:00
|
|
|
-j$JOBS || exit 1
|
|
|
|
|
|
|
|
make -j$JOBS || exit 1
|
|
|
|
exec make install
|