diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-11-08 10:49:01 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-11-08 10:49:01 +0000 |
commit | 7449ee0a71571a9f3905a8defdf33bc902ec7b49 (patch) | |
tree | f8afe38d277fe44fd9991074743eb89e6ca96652 /testsuites/aclocal | |
parent | e7642162bfa96e628067e71282e6d1caa988a516 (diff) |
Add GCCSPECS. Remove RTEMS_CPPFLAGS.
Diffstat (limited to 'testsuites/aclocal')
-rw-r--r-- | testsuites/aclocal/prog-cc.m4 | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/testsuites/aclocal/prog-cc.m4 b/testsuites/aclocal/prog-cc.m4 index 6847863fa8..e31587d278 100644 --- a/testsuites/aclocal/prog-cc.m4 +++ b/testsuites/aclocal/prog-cc.m4 @@ -21,8 +21,11 @@ AC_DEFUN([RTEMS_PROG_CC_FOR_TARGET], [ dnl check target cc RTEMS_PROG_CC -dnl check if the compiler supports -isystem -RTEMS_GCC_ISYSTEM + +AS_IF([test x"$GCC" = xyes],[ +GCCSPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/" +GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"]) +AC_SUBST(GCCSPECS) if test "$GCC" = yes; then RTEMS_CFLAGS="$RTEMS_CFLAGS -Wall" @@ -30,9 +33,5 @@ m4_if([$1],,[],[RTEMS_CFLAGS="$RTEMS_CFLAGS $1"]) fi AC_SUBST(RTEMS_CFLAGS) -AS_IF([test x"$rtems_cv_gcc_isystem" = x"yes"],[ - RTEMS_CPPFLAGS="-isystem \$(PROJECT_INCLUDE)"],[ - RTEMS_CPPFLAGS="-I\$(PROJECT_INCLUDE)" -]) AC_SUBST(RTEMS_CPPFLAGS) ]) |