From f1d08c98b3c500c33f9d74b167ec132f407dfa3a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 7 May 2001 13:15:49 +0000 Subject: 2001-04-27 Ralf Corsepius * aclocal/prog-cc.m4: Add CPPFLAGS and CFLAGS handling to RTEMS_PROG_CC_FOR_TARGET. --- aclocal/prog-cc.m4 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'aclocal/prog-cc.m4') 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) -- cgit v1.2.3