mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
MFB: Fix test for auto_cflags and explictly set GCC="no" if we detect suncc
This commit is contained in:
parent
00d831fe2a
commit
10f7335698
@ -2776,6 +2776,7 @@ AC_DEFUN([PHP_DETECT_SUNCC],[
|
||||
SUNCC="no"
|
||||
AC_MSG_RESULT([no]),
|
||||
SUNCC="yes"
|
||||
GCC="no"
|
||||
test -n "$auto_cflags" && CFLAGS="-fsimple=2 -xnorunpath -xO4 -xalias_level=basic -xipo=1 -xlibmopt -xprefetch_level=1 -xprefetch=auto -xstrconst -xtarget=native -zlazyload"
|
||||
GCC=""
|
||||
AC_MSG_RESULT([yes])
|
||||
|
@ -796,7 +796,7 @@ if test "$PHP_DEBUG" = "yes"; then
|
||||
CXXFLAGS="$CXXFLAGS -O0"
|
||||
fi
|
||||
if test "$SUNCC" = "yes"; then
|
||||
if -n "$auto_cflags"; then
|
||||
if test -n "$auto_cflags"; then
|
||||
CFLAGS="-g"
|
||||
CXXFLAGS="-g"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user