summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--toolchain/helpers.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk
index eeac7d2f29..8aaad67988 100644
--- a/toolchain/helpers.mk
+++ b/toolchain/helpers.mk
@@ -371,6 +371,11 @@ check_unusable_toolchain = \
echo "and contain a lot of pre-built libraries that would conflict with"; \
echo "the ones Buildroot wants to build."; \
exit 1; \
+ fi; \
+ libc_a_path=`$${__CROSS_CC} -print-file-name=libc.a` ; \
+ if test "$${libc_a_path}" = "libc.a" ; then \
+ echo "Unable to detect the toolchain sysroot, Buildroot cannot use this toolchain." ; \
+ exit 1 ; \
fi
#
OpenPOWER on IntegriCloud