diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-01-06 14:56:27 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-01-06 14:56:27 +0000 |
commit | a4b8a37d4ba3c6276e40763799fc0faf75be93ec (patch) | |
tree | 61e49e7065235bce7fe5e249fe5bb6ffb3ed6183 /testsuites/aclocal/prog-cxx.m4 | |
parent | 2004-01-06 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-a4b8a37d4ba3c6276e40763799fc0faf75be93ec.tar.bz2 |
2004-01-06 Ralf Corsepius <ralf.corsepius@rtems.org>
* aclocal/env-rtemsbsp.m4:
Remove CPU_CFLAGS, CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V.
* aclocal/prog-cc.m4:
Don't invoke _RTEMS_FLAGS to set up RTEMS_CFLAGS.
* aclocal/prog-cxx.m4: Let CXXFLAGS default to CFLAGS.
Don't invoke _RTEMS_FLAGS to set up RTEMS_CXXFLAGS.
Remove am__fastdepCXX conditional.
Diffstat (limited to 'testsuites/aclocal/prog-cxx.m4')
-rw-r--r-- | testsuites/aclocal/prog-cxx.m4 | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/testsuites/aclocal/prog-cxx.m4 b/testsuites/aclocal/prog-cxx.m4 index 8991489814..813b862a8c 100644 --- a/testsuites/aclocal/prog-cxx.m4 +++ b/testsuites/aclocal/prog-cxx.m4 @@ -8,12 +8,13 @@ AC_DEFUN([RTEMS_PROG_CXX_FOR_TARGET], [ AC_BEFORE([$0], [RTEMS_CANONICALIZE_TOOLS])dnl AC_REQUIRE([RTEMS_ENABLE_CXX]) + +# If CXXFLAGS is not set, default to CFLAGS +CXXFLAGS=${CXXFLAGS-${CFLAGS}} + RTEMS_CHECK_TOOL(CXX,g++) if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then -_RTEMS_FLAGS([CXXFLAGS], - ["\$(CPU_CFLAGS) \$(RTEMS_CFLAGS_\$(VARIANT_V)_V) \$(CFLAGS_\$(VARIANT_V)_V) -g"]) - dnl Only accept g++ dnl NOTE: This might be too restrictive test -z "$CXX" \ @@ -27,9 +28,5 @@ AC_PROG_CXX [must both either be cross compilers or native compilers] [Hint: If building a posix bsp: LD_LIBRARY_PATH?] ) fi - -else -## Work-around to a bug in automake -AM_CONDITIONAL([am__fastdepCXX],[false]) fi ]) |