summaryrefslogtreecommitdiffstats
path: root/aclocal/prog-cc.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal/prog-cc.m4')
-rw-r--r--aclocal/prog-cc.m46
1 files changed, 6 insertions, 0 deletions
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)