From 08ebd6ec3db26f34ea4fcb04fc475aec5e26ad73 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 2 Jun 2011 19:50:12 +0200 Subject: cc/gcc: CC_STATIC_LIBSTDCXX 'depends on' CONFIGURE_has_static_libstdcpp Hide the staticaly linked libstdc++ option if the static libstdc++ is not present, detected at configure time. Add a blind option that says whether static linking is possible at all. It defaults to 'y', but depends on the needed CONFIGURE_* options. For now, it only depends on static libtdc++, but new dependencies can be easily added. Hide the global static toolchain option behind this new option. Original patch by Bryan Hundven Signed-off-by: "Yann E. MORIN" --- config/cc/gcc.in.2 | 1 + 1 file changed, 1 insertion(+) (limited to 'config/cc') diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2 index bf333738..c8d991aa 100644 --- a/config/cc/gcc.in.2 +++ b/config/cc/gcc.in.2 @@ -44,6 +44,7 @@ config CC_STATIC_LIBSTDCXX bool prompt "Link libstdc++ statically into the gcc binary" default y + depends on CONFIGURE_has_static_libstdcxx depends on CC_GCC_4_4_or_later help Newer gcc versions use the PPL library which is C++ code. Statically -- cgit v1.2.3