This repository was archived by the owner on Apr 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 15
15
# Environment Variables (Optional):
16
16
# MOD_PAGESPEED_DIR: absolute path to the mod_pagespeed/src directory
17
17
# PSOL_BINARY: absolute path to pagespeed_automatic.a
18
+ # PSOL_BUILDTYPE: Release or Debug
18
19
19
20
mod_pagespeed_dir="${MOD_PAGESPEED_DIR:-unset}"
20
21
position_aux="${POSITION_AUX:-unset}"
22
+ psol_buildtype="${PSOL_BUILDTYPE:-unset}"
21
23
22
24
if [ "$mod_pagespeed_dir" = "unset" ] ; then
23
25
mod_pagespeed_dir="$ngx_addon_dir/psol/include"
75
77
exit 1
76
78
fi
77
79
78
- if [ "$NGX_DEBUG" = "YES" ]; then
79
- buildtype=Debug
80
- # If we're using a psol tarball that doesn't contain Debug/ (which is the case
81
- # from 1.12 onward) then this will be overriden to buildtype=Release below.
80
+ if [ "$psol_buildtype" = "unset" ] ; then
81
+ if [ "$NGX_DEBUG" = "YES" ]; then
82
+ buildtype=Debug
83
+ # If we're using a psol tarball that doesn't contain Debug/ (which is the case
84
+ # from 1.12 onward) then this will be overriden to buildtype=Release below.
85
+ else
86
+ buildtype=Release
87
+ fi
82
88
else
83
- buildtype=Release
89
+ buildtype=$psol_buildtype
84
90
fi
85
91
86
92
# If the compiler is gcc, we want to use g++ to link, if at all possible,
You can’t perform that action at this time.
0 commit comments