summaryrefslogtreecommitdiffstats
path: root/cpukit/aclocal/prog-cc.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-12-06 11:21:50 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-12-06 11:21:50 +0000
commit8e4cd5a6f736933dd62185e6d2dc23dcba79a40e (patch)
tree08844129f67d9c8d1168fc1493fd7632b6616755 /cpukit/aclocal/prog-cc.m4
parent2002-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-8e4cd5a6f736933dd62185e6d2dc23dcba79a40e.tar.bz2
2002-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* 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.
Diffstat (limited to 'cpukit/aclocal/prog-cc.m4')
-rw-r--r--cpukit/aclocal/prog-cc.m416
1 files changed, 5 insertions, 11 deletions
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)
])