-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathconfig.sh
More file actions
executable file
·48 lines (35 loc) · 840 Bytes
/
config.sh
File metadata and controls
executable file
·48 lines (35 loc) · 840 Bytes
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
40
41
42
43
44
45
46
47
48
#!/bin/sh
ngx_path=$HOME/nginx
src_path=$HOME/github/ngx_cpp_dev
build_date="${USER} build at `date '+%Y.%m.%d %H:%M'`"
cc_opt="-g -O0"
common_opts="--with-threads --with-pcre-jit"
prefix="--prefix=/opt/nginx_cpp"
ngxpp_module="--add-module=${src_path}/ngxpp"
modules="test echo filter
variables
"
http_modules=""
for m in $modules
do
http_modules="${http_modules} --add-module=${src_path}/http/${m} "
done
modules=""
event_modules=""
for m in $modules
do
event_modules="${event_modules} --add-module=${src_path}/event/${m} "
done
opts="${prefix}
${common_opts}
${ngxpp_module}
${http_modules}
${event_modules}
"
cd $ngx_path
./configure \
--build="${build_date}" \
--with-cc-opt="${cc_opt}" \
${opts}
# --with-ld-opt="-lrt"
cd -