aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDan Nicolaescu <[email protected]>2010-06-29 22:51:07 -0700
committerDan Nicolaescu <[email protected]>2010-06-29 22:51:07 -0700
commitf71cd38ac42420fc0c7290e0adedf965749d74df (patch)
tree14c22a29d15818874958fd9523a4e3f463eee7ed /configure
parentf4981b7e31e98ed2f2d46733961c5ca211cc41c4 (diff)
Fix CFLAGS for non-GCC compilers.
* configure.in (CFLAGS): Always use -g like it was done before the 2010-03-30 change. (REAL_CFLAGS): Use CFLAGS for non-GCC to get optimization flags. (Bug#6538)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 4 insertions, 7 deletions
diff --git a/configure b/configure
index 90718cf6aa..cb353569d7 100755
--- a/configure
+++ b/configure
@@ -5436,21 +5436,18 @@ CPP=`eval "echo $CPP"`
### First figure out CFLAGS (which we use for running the compiler here)
### and REAL_CFLAGS (which we use for real compilation).
-### The two are the same except on a few systems, where they are made
-### different to work around various lossages. For example,
-### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
-### as implying static linking.
+### The two are the same except when using GCC where we might use
+### extra warning and profiling flags.
### If the CFLAGS env var is specified, we use that value
### instead of the default.
if test "x$SPECIFIED_CFLAGS" = x; then
+ CFLAGS="-g $C_OPTIMIZE_SWITCH"
if test x$GCC = xyes; then
- CFLAGS="-g $C_OPTIMIZE_SWITCH"
REAL_CFLAGS="$CFLAGS $C_WARNINGS_SWITCH $PROFILING_CFLAGS"
else
- CFLAGS=
- REAL_CFLAGS=
+ REAL_CFLAGS="$CFLAGS"
fi
else
REAL_CFLAGS="$CFLAGS"