summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
])