summaryrefslogtreecommitdiff
path: root/config/cc
diff options
context:
space:
mode:
authorBryan Hundven" <bryanhundven@gmail.com>2010-12-09 17:55:42 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2010-12-09 17:55:42 (GMT)
commit118a6a5f98d09f0d537350a36cf7c37e2d1bf9b1 (patch)
treed10ad2ce4dfe15ddd80d25b18de30ae070999ec4 /config/cc
parentbf3c89ebb5c39410f52cd81e0c19bb58b59dc3e9 (diff)
cc/gcc: build final gcc statically
If the global static option is set, then build the final gcc statically. Signed-off-by: "Bryan Hundven" <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'config/cc')
-rw-r--r--config/cc/gcc.in.23
1 files changed, 3 insertions, 0 deletions
diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2
index a87b388..9e08689 100644
--- a/config/cc/gcc.in.2
+++ b/config/cc/gcc.in.2
@@ -36,6 +36,9 @@ config CC_GCC_USE_LTO
This will require the libelf companion library, and it
wil be build automatically for you.
+config STATIC_TOOLCHAIN
+ select CC_STATIC_LIBSTDCXX if CC_GCC_4_4_or_later
+
config CC_STATIC_LIBSTDCXX
bool
prompt "Link libstdc++ statically into the gcc binary"