- Fixed -g adding for gcc and g++ (former got it twice, latter not at all)

This commit is contained in:
Jani Taskinen 2010-11-02 09:58:08 +00:00
parent 743f50927c
commit 309a56f3f7
2 changed files with 2 additions and 2 deletions

View file

@ -764,7 +764,7 @@ if test "$PHP_DEBUG" = "yes"; then
changequote([,]) changequote([,])
dnl add -O0 only if GCC or ICC is used dnl add -O0 only if GCC or ICC is used
if test "$GCC" = "yes" || test "$ICC" = "yes"; then if test "$GCC" = "yes" || test "$ICC" = "yes"; then
CFLAGS="$CFLAGS -g -O0" CFLAGS="$CFLAGS -O0"
CXXFLAGS="$CXXFLAGS -g -O0" CXXFLAGS="$CXXFLAGS -g -O0"
fi fi
if test "$SUNCC" = "yes"; then if test "$SUNCC" = "yes"; then

View file

@ -111,7 +111,7 @@ if test "$PHP_DEBUG" = "yes"; then
dnl add -O0 only if GCC or ICC is used dnl add -O0 only if GCC or ICC is used
if test "$GCC" = "yes" || test "$ICC" = "yes"; then if test "$GCC" = "yes" || test "$ICC" = "yes"; then
CFLAGS="$CFLAGS -O0" CFLAGS="$CFLAGS -O0"
CXXFLAGS="$CXXFLAGS -O0" CXXFLAGS="$CXXFLAGS -g -O0"
fi fi
if test "$SUNCC" = "yes"; then if test "$SUNCC" = "yes"; then
if test -n "$auto_cflags"; then if test -n "$auto_cflags"; then