From e2b9a81da34023db468b61caecf1b4799016f174 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Fri, 14 Oct 2011 22:44:24 +0200 Subject: scripts: check host features with host compiler Currently, we check host feature in ./configure. This works only for cross toolchains, but not for canadian toolchains. ./configure has absolutely no way to know what the host for the toolchain will be; only the build scripts know. So, move the headers & libraries checks from ./configure to the build scripts, early enough in the build, but not before we know the host compiler and other tools. Signed-off-by: "Yann E. MORIN" --- config/cc/gcc.in.2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config/cc') diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2 index 641478df..35a1070f 100644 --- a/config/cc/gcc.in.2 +++ b/config/cc/gcc.in.2 @@ -44,9 +44,8 @@ config CC_STATIC_LIBSTDCXX bool prompt "Link libstdc++ statically into the gcc binary" default y - depends on CONFIGURE_static_link_ok - depends on CONFIGURE_has_static_libstdcxx depends on CC_GCC_4_4_or_later + select WANTS_STATIC_LINK help Newer gcc versions use the PPL library which is C++ code. Statically linking libstdc++ increases the likeliness that the gcc binary will -- cgit v1.2.3