summaryrefslogtreecommitdiffstats
path: root/testsuites/aclocal/prog-cc.m4
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-11-09 09:38:03 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-11-09 09:38:03 +0000
commitfa6f76bc29e636494066cf070146686b3d8b1a95 (patch)
treec1525cc6f8d918644b5e20d4c6f646f1be8c6b97 /testsuites/aclocal/prog-cc.m4
parent2005-11-09 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-fa6f76bc29e636494066cf070146686b3d8b1a95.tar.bz2
Apply cpukit_root, project_root to set up GCCSPECS.
Diffstat (limited to 'testsuites/aclocal/prog-cc.m4')
-rw-r--r--testsuites/aclocal/prog-cc.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuites/aclocal/prog-cc.m4 b/testsuites/aclocal/prog-cc.m4
index 5ac6cb7232..5b3e1149dc 100644
--- a/testsuites/aclocal/prog-cc.m4
+++ b/testsuites/aclocal/prog-cc.m4
@@ -23,7 +23,10 @@ dnl check target cc
RTEMS_PROG_CC
AS_IF([test x"$GCC" = xyes],[
-GCCSPECS="-B\$(PROJECT_ROOT)/lib/ -B\$(PROJECT_ROOT)/$RTEMS_BSP/lib/"
+AS_IF([test "${enable_cpukit_root+set}"],[
+ GCCSPECS="-B\$(CPUKIT_ROOT)/lib/"])
+AS_IF([test "${enable_project_root+set}"],[
+ GCCSPECS="$GCCSPECS -B\$(PROJECT_ROOT)/lib/"])
GCCSPECS="${GCCSPECS} -specs bsp_specs -qrtems"])
AC_SUBST(GCCSPECS)
])