From 8e4cd5a6f736933dd62185e6d2dc23dcba79a40e Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 6 Dec 2002 11:21:50 +0000 Subject: 2002-12-06 Ralf Corsepius * automake/multilib.am: Don't include @RTEMS_BSP@.cfg. * automake/compile.am: Remove hard-coded CFLAGS_PROFILE_V. Add autoconf-supplied CPU_CFLAGS, CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V. Hard-code RTEMS_CFLAGS_PROFILE = -pg * aclocal/prog-cc.m4: Sync with toplevel/aclocal/prog-cc.m4. Remove GCCSED. * aclocal/env-rtemsbsp.m4: Add AC_ARG_VAR for CPU_CFLAGS, CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V. --- cpukit/aclocal/prog-cc.m4 | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'cpukit/aclocal/prog-cc.m4') diff --git a/cpukit/aclocal/prog-cc.m4 b/cpukit/aclocal/prog-cc.m4 index 67689c6ccc..4ed2f5730c 100644 --- a/cpukit/aclocal/prog-cc.m4 +++ b/cpukit/aclocal/prog-cc.m4 @@ -10,6 +10,9 @@ AC_BEFORE([$0], [AC_PROG_CPP])dnl AC_BEFORE([$0], [AC_PROG_CC])dnl AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl +_RTEMS_FLAGS([CFLAGS], + ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"]) + RTEMS_CHECK_TOOL(CC,gcc) test -z "$CC" && \ AC_MSG_ERROR([no acceptable cc found in \$PATH]) @@ -30,16 +33,7 @@ RTEMS_GCC_PIPE test "$rtems_cv_gcc_pipe" = "yes" && CC="$CC --pipe" if test "$GCC" = yes; then -] -m4_if([$1],,[],[CPPFLAGS="$CPPFLAGS $1"]) -[ -CFLAGS=${CFLAGS--g -Wall} +RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall" +m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"]) fi - -dnl FIXME: HACK for egcs/cygwin mixing '\\' and '/' in gcc -print-* -#case $build_os in -#*cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;; -#*) ;; -#esac -AC_SUBST(GCCSED) ]) -- cgit v1.2.3