-
Notifications
You must be signed in to change notification settings - Fork 2k
/
build2.sh
executable file
·40 lines (34 loc) · 1.54 KB
/
build2.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
38
39
#!/bin/bash
# this file is mostly meant to be used by the author himself.
root=`pwd`
version=${1:-1.0.5}
home=~
force=$2
# the ngx-build script is from https://github.com/agentzh/nginx-devel-utils
#--without-pcre \
#--without-http_rewrite_module \
ngx-build $force $version \
--add-module=$root/../ndk-nginx-module \
--add-module=$root/../set-misc-nginx-module \
--with-cc-opt=$'-O3' \
--with-ld-opt="-Wl,-rpath,/opt/drizzle/lib:/usr/local/lib:/home/lz/lib:/usr/local/openresty/luajit/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=$home/work/nginx/ngx_http_auth_request_module-0.2 \
--add-module=$root/../echo-nginx-module \
--add-module=$root/../memc-nginx-module \
--add-module=$root \
--add-module=$root/../headers-more-nginx-module \
--add-module=$root/../drizzle-nginx-module \
--add-module=$home/work/nginx/ngx_http_upstream_keepalive-2ce9d8a1ca93 \
--add-module=$root/../rds-json-nginx-module \
$opts \
--with-debug