aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDan Nicolaescu2010-06-29 22:51:07 -0700
committerDan Nicolaescu2010-06-29 22:51:07 -0700
commitf71cd38ac42420fc0c7290e0adedf965749d74df (patch)
tree14c22a29d15818874958fd9523a4e3f463eee7ed /configure
parentf4981b7e31e98ed2f2d46733961c5ca211cc41c4 (diff)
downloademacs-f71cd38ac42420fc0c7290e0adedf965749d74df.tar.gz
emacs-f71cd38ac42420fc0c7290e0adedf965749d74df.zip
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 90718cf6aad..cb353569d78 100755
--- a/configure
+++ b/configure
@@ -5436,21 +5436,18 @@ CPP=`eval "echo $CPP"`
5436 5436
5437### First figure out CFLAGS (which we use for running the compiler here) 5437### First figure out CFLAGS (which we use for running the compiler here)
5438### and REAL_CFLAGS (which we use for real compilation). 5438### and REAL_CFLAGS (which we use for real compilation).
5439### The two are the same except on a few systems, where they are made 5439### The two are the same except when using GCC where we might use
5440### different to work around various lossages. For example, 5440### extra warning and profiling flags.
5441### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5442### as implying static linking.
5443 5441
5444### If the CFLAGS env var is specified, we use that value 5442### If the CFLAGS env var is specified, we use that value
5445### instead of the default. 5443### instead of the default.
5446 5444
5447if test "x$SPECIFIED_CFLAGS" = x; then 5445if test "x$SPECIFIED_CFLAGS" = x; then
5446 CFLAGS="-g $C_OPTIMIZE_SWITCH"
5448 if test x$GCC = xyes; then 5447 if test x$GCC = xyes; then
5449 CFLAGS="-g $C_OPTIMIZE_SWITCH"
5450 REAL_CFLAGS="$CFLAGS $C_WARNINGS_SWITCH $PROFILING_CFLAGS" 5448 REAL_CFLAGS="$CFLAGS $C_WARNINGS_SWITCH $PROFILING_CFLAGS"
5451 else 5449 else
5452 CFLAGS= 5450 REAL_CFLAGS="$CFLAGS"
5453 REAL_CFLAGS=
5454 fi 5451 fi
5455else 5452else
5456 REAL_CFLAGS="$CFLAGS" 5453 REAL_CFLAGS="$CFLAGS"