summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-11-30 14:10:11 +0000
committerJani Taskinen <jani@php.net>2009-11-30 14:10:11 +0000
commit3487ab7eb998f5190c83b0a5777f1979708c764d (patch)
treec42dd12319bac49cf6049a07c52075719c960c41
parent43d6b87ccb70aa2bb8add8ba4b0f6d5ed4b7a7d6 (diff)
downloadphp-git-3487ab7eb998f5190c83b0a5777f1979708c764d.tar.gz
MF53: sync
-rw-r--r--configure.in23
1 files changed, 12 insertions, 11 deletions
diff --git a/configure.in b/configure.in
index 925d434bfe..9aa3bd8177 100644
--- a/configure.in
+++ b/configure.in
@@ -192,6 +192,7 @@ case $host_cpu in
if test "$SUNCC" = "yes"; then
CFLAGS="$CFLAGS -xmemalign=8s"
fi
+ ;;
esac
case $host_alias in
@@ -745,15 +746,6 @@ if test "$PHP_GCOV" = "yes"; then
dnl Add the special gcc flags
CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
- if test "$SUNCC" = "yes"; then
- if test -n "$auto_cflags"; then
- CFLAGS="-g"
- CXXFLAGS="-g"
- else
- CFLAGS="$CFLAGS -g"
- CXXFLAGS="$CFLAGS -g"
- fi
- fi
fi
PHP_ARG_ENABLE(debug, whether to include debugging symbols,
@@ -768,8 +760,17 @@ if test "$PHP_DEBUG" = "yes"; then
changequote([,])
dnl add -O0 only if GCC or ICC is used
if test "$GCC" = "yes" || test "$ICC" = "yes"; then
- CFLAGS="$CFLAGS -O0"
- CXXFLAGS="$CXXFLAGS -O0"
+ CFLAGS="$CFLAGS -g -O0"
+ CXXFLAGS="$CXXFLAGS -g -O0"
+ fi
+ if test "$SUNCC" = "yes"; then
+ if test -n "$auto_cflags"; then
+ CFLAGS="-g"
+ CXXFLAGS="-g"
+ else
+ CFLAGS="$CFLAGS -g"
+ CXXFLAGS="$CFLAGS -g"
+ fi
fi
else
PHP_DEBUG=0