Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Honour system CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Dec 17, 2015
1 parent ebc1adb commit 0ce48ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ if test "$PHP_IGBINARY" != "no"; then
if test ! -z "`$CC --version | grep -i GCC`"; then
AC_MSG_RESULT(gcc)
if test -z "`echo $CFLAGS | grep -- -O0`"; then
PHP_IGBINARY_CFLAGS="-Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wshadow -Wwrite-strings -Wswitch -Winline -finline-limit=10000 --param large-function-growth=10000 --param inline-unit-growth=10000"
PHP_IGBINARY_CFLAGS="$CFLAGS -Wall -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wshadow -Wwrite-strings -Wswitch -Winline -finline-limit=10000 --param large-function-growth=10000 --param inline-unit-growth=10000"
fi
elif test ! -z "`$CC --version | grep -i ICC`"; then
AC_MSG_RESULT(icc)
if test -z "`echo $CFLAGS | grep -- -O0`"; then
PHP_IGBINARY_CFLAGS="-no-prec-div -O3 -x0 -unroll2"
PHP_IGBINARY_CFLAGS="$CFLAGS -no-prec-div -O3 -x0 -unroll2"
fi
elif test ! -z "`$CC --version | grep -i CLANG`"; then
AC_MSG_RESULT(clang)
if test -z "`echo $CFLAGS | grep -- -O0`"; then
PHP_IGBINARY_CFLAGS="-Wall -O2"
PHP_IGBINARY_CFLAGS="$CFLAGS -Wall -O2"
fi
else
AC_MSG_RESULT(other)
Expand Down

0 comments on commit 0ce48ff

Please sign in to comment.