summaryrefslogtreecommitdiffstats
path: root/automake/compile.am
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-11-15 14:45:37 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-11-15 14:45:37 +0000
commit8a2e2aaa2a5e345b663e6e158912e32f74f76008 (patch)
treee49a5416e0fa901f3ddd6a6103ad7fb48cbf274c /automake/compile.am
parent2002-11-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-8a2e2aaa2a5e345b663e6e158912e32f74f76008.tar.bz2
2002-11-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* automake/compile.am: Remove CFLAGS_DEBUG_OPTIMIZE_V, CXXFLAGS_DEBUG_OPTIMIZE_V, LDFLAGS_DEBUG_V, CFLAGS_DEFAULT. Support @CFLAGS@, @CXXFLAGS@.
Diffstat (limited to '')
-rw-r--r--automake/compile.am12
1 files changed, 2 insertions, 10 deletions
diff --git a/automake/compile.am b/automake/compile.am
index 7fa6218f4d..52fde829ac 100644
--- a/automake/compile.am
+++ b/automake/compile.am
@@ -43,7 +43,6 @@
if RTEMS_USE_GCC
## All the stuff below is specific to gcc
-CFLAGS_DEFAULT=-g -Wall
## gcc >= 2.8.x
GCCSPECS = $(GCC_SPECS) $(RTEMS_BSP_SPECS)
else
@@ -56,19 +55,12 @@ DEFS = @DEFS@
CPPFLAGS = @CPPFLAGS@ $(CPU_DEFINES) \
$(DEFINES) $(XCPPFLAGS) $(CPPFLAGS_GCC)
-CFLAGS = $(CFLAGS_DEFAULT) $(CPU_CFLAGS) $(XCFLAGS)
-CXXFLAGS = $(CFLAGS_DEFAULT) $(CPU_CFLAGS) $(XCXXFLAGS)
+CFLAGS = @CFLAGS@ $(CPU_CFLAGS) $(XCFLAGS)
+CXXFLAGS = @CXXFLAGS@ $(CPU_CFLAGS) $(XCXXFLAGS)
ASFLAGS = $(CPU_ASFLAGS) $(CPU_CFLAGS) $(XASFLAGS)
LINK_LIBS = $(LD_LIBS)
-## FIXME: This doesn't seem to be correct
-# when debugging, optimize flag: typically empty
-# some compilers do allow optimization with their "-g"
-CFLAGS_DEBUG_OPTIMIZE_V=-g
-CXXFLAGS_DEBUG_OPTIMIZE_V=-g
-LDFLAGS_DEBUG_V =
-
# profile flag; use gprof(1)
CFLAGS_PROFILE_V=-pg
CXXFLAGS_PROFILE_V=-pg