summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-05-07 13:15:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-05-07 13:15:49 +0000
commitf1d08c98b3c500c33f9d74b167ec132f407dfa3a (patch)
tree6698d0871a089decb651c039763c63c4f0e321d2
parentbbc99f1a6f0984a8cf68027328a0bfdf852721b5 (diff)
downloadrtems-f1d08c98b3c500c33f9d74b167ec132f407dfa3a.tar.bz2
2001-04-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* aclocal/prog-cc.m4: Add CPPFLAGS and CFLAGS handling to RTEMS_PROG_CC_FOR_TARGET.
-rw-r--r--ChangeLog5
-rw-r--r--aclocal/prog-cc.m46
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index eb3dcdfdfb..3f23af6f9b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * aclocal/prog-cc.m4: Add CPPFLAGS and CFLAGS handling to
+ RTEMS_PROG_CC_FOR_TARGET.
+
2001-04-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* README.cdn-X: Update.
diff --git a/aclocal/prog-cc.m4 b/aclocal/prog-cc.m4
index 164934ba51..868c411b21 100644
--- a/aclocal/prog-cc.m4
+++ b/aclocal/prog-cc.m4
@@ -38,6 +38,12 @@ if test "$RTEMS_USE_GCC272" != "yes" ; then
fi
test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe"
+if test "$GCC" = yes; then
+]
+ifelse([$1],,[],[CPPFLAGS="$CPPFLAGS $1"])
+[
+CFLAGS="-g -Wall"
+fi
## Conditional for automake files
AM_CONDITIONAL(RTEMS_USE_GCC272, test x"$RTEMS_USE_GCC272" = x"yes")
## Make variable for autoconf fragments (*.cfg)