File tree 2 files changed +20
-6
lines changed
2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ export NGX_BUILD_NOPOOL ?= 0
30
30
export NGX_BUILD_FSANITIZE ?=
31
31
export NGX_BUILD_OPENRESTY ?=
32
32
export NGX_BUILD_OPENSSL ?=
33
+ export NGX_BUILD_OPENSSL_DEBUG ?= 0
33
34
export NGX_BUILD_CLANG_ANALYZER ?= 0
34
35
export NGX_BUILD_GCOV ?= 0
35
36
export NGX_BUILD_FORCE ?= 0
Original file line number Diff line number Diff line change @@ -126,14 +126,27 @@ install_openssl() {
126
126
local dirname=" openssl-lib-$OPENSSL_VER "
127
127
128
128
if [ ! -d $dirname ]; then
129
- notice " building OpenSSL..."
129
+ notice " building OpenSSL... (debug: $NGX_BUILD_OPENSSL_DEBUG ) "
130
130
local prefix=" $( pwd) /$dirname "
131
+ local opts=" "
132
+
133
+ if [[ " $NGX_BUILD_OPENSSL_DEBUG " == 1 ]]; then
134
+ opts+=" no-asm \
135
+ -fno-inline \
136
+ -fno-omit-frame-pointer \
137
+ -d \
138
+ -g3 \
139
+ -ggdb3 \
140
+ -O0"
141
+ fi
142
+
131
143
pushd openssl-$OPENSSL_VER
132
- ./config \
133
- --prefix=$prefix \
134
- --openssldir=$prefix /openssl \
135
- shared \
136
- no-threads
144
+ eval ./config \
145
+ " --prefix=$prefix " \
146
+ " --openssldir=$prefix /openssl" \
147
+ " shared" \
148
+ " no-threads" \
149
+ " $opts "
137
150
make -j$( n_jobs)
138
151
make install_sw
139
152
popd
You can’t perform that action at this time.
0 commit comments