Skip to content

Commit

Permalink
lower Clang optimisation level if LOWMEM_INSTALL='y' set in 123.09beta01
Browse files Browse the repository at this point in the history
  • Loading branch information
centminmod committed Mar 17, 2017
1 parent 7626aa2 commit 38cae71
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions inc/nginx_configure.inc
Expand Up @@ -2288,15 +2288,23 @@ if [[ "$CLANG" = [yY] ]]; then
# https://community.centminmod.com/posts/36274/
GCC_OPTLEVEL='-O2'
else
GCC_OPTLEVEL='-O3'
if [[ "$LOWMEM_INSTALL" = [yY] ]]; then
GCC_OPTLEVEL='-O2'
else
GCC_OPTLEVEL='-O3'
fi
fi
FSTACKPROTECT='-fstack-protector'
else
if [[ "$NGINX_PASSENGER" = [yY] ]]; then
# https://community.centminmod.com/posts/36274/
GCC_OPTLEVEL='-O2'
else
GCC_OPTLEVEL='-O3'
if [[ "$LOWMEM_INSTALL" = [yY] ]]; then
GCC_OPTLEVEL='-O2'
else
GCC_OPTLEVEL='-O3'
fi
fi
if [[ "$(gcc --version | head -n1 | awk '{print $3}' | cut -d . -f1-3 | sed "s|\.|0|g")" -lt '40805' ]]; then
FSTACKPROTECT='-fstack-protector'
Expand Down

0 comments on commit 38cae71

Please sign in to comment.