Skip to content

Commit 20ed155

Browse files
committed
dev: checked in util/build.sh.
1 parent 995a9c2 commit 20ed155

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

util/build.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
# this file is mostly meant to be used by the author himself.
4+
5+
root=`pwd`
6+
version=$1
7+
home=~
8+
force=$2
9+
10+
#--with-cc=gcc46 \
11+
12+
ngx-build $force $version \
13+
--with-cc-opt="-I$PCRE_INC -I$OPENSSL_INC" \
14+
--with-ld-opt="-L$PCRE_LIB -L$OPENSSL_LIB -Wl,-rpath,$PCRE_LIB:$LIBDRIZZLE_LIB:$OPENSSL_LIB" \
15+
--with-http_ssl_module \
16+
--with-ipv6 \
17+
--add-module=$root/../echo-nginx-module \
18+
--add-module=$root/../lua-nginx-module \
19+
--add-module=$root/../eval-nginx-module \
20+
--add-module=$root/../rds-json-nginx-module \
21+
--add-module=$root/../ndk-nginx-module \
22+
--add-module=$root/../set-misc-nginx-module \
23+
--add-module=$root/../form-input-nginx-module \
24+
--add-module=$root/../coolkit-nginx-module \
25+
--add-module=$home/work/nginx/ngx_http_auth_request_module-0.2/ \
26+
--add-module=$root $opts \
27+
--with-select_module \
28+
--with-poll_module \
29+
--with-threads \
30+
--with-debug
31+
#--add-module=$home/work/ngx_http_auth_request-0.1 #\
32+
#--with-rtsig_module
33+
#--with-cc-opt="-g3 -O0"
34+
#--add-module=$root/../echo-nginx-module \
35+
#--without-http_ssi_module # we cannot disable ssi because echo_location_async depends on it (i dunno why?!)
36+

0 commit comments

Comments
 (0)