/
build.sh
executable file
·38 lines (33 loc) · 1.36 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# this file is mostly meant to be used by the author himself.
root=`pwd`
version=$1
home=~
force=$2
ngx-build $force $version \
--with-ld-opt="-Wl,-rpath,/opt/drizzle/lib" \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \
--without-http_upstream_ip_hash_module \
--without-http_empty_gif_module \
--without-http_memcached_module \
--without-http_referer_module \
--without-http_autoindex_module \
--without-http_auth_basic_module \
--without-http_userid_module \
--add-module=$root/../echo-nginx-module \
--add-module=$root/../lua-nginx-module \
--add-module=$root/../rds-json-nginx-module \
--add-module=$root/../headers-more-nginx-module \
--add-module=$root $opts \
--add-module=$root/../ndk-nginx-module \
--add-module=$root/../set-misc-nginx-module \
--with-select_module \
--with-poll_module \
--with-rtsig_module \
--with-debug
#--with-cc-opt="-g3 -O0"
#--add-module=$home/work/nginx_eval_module-1.0.1 \
#--add-module=$root/../echo-nginx-module \
#--without-http_ssi_module # we cannot disable ssi because echo_location_async depends on it (i dunno why?!)