path: root/config
diff options
authorJohannes Stezenbach <>2010-07-29 17:47:16 (GMT)
committerJohannes Stezenbach <>2010-07-29 17:47:16 (GMT)
commit143f02e0ce81ec8886bbdfd73f139eadb910cfe3 (patch)
treeb6efd3d28d0a353106a4ffccd64df4a8c17d9fd9 /config
parent8bd0034057c8bd34df4fb401bedfca49384f5323 (diff)
cc/gcc: add option to compile against static libstdc++, for gcc-4.4 and newer
Idea and know-how taken from CodeSourcery build script. Normal build: $ ldd arm-unknown-linux-uclibcgnueabi-gcc => (0xb77f3000) => /usr/lib/ (0xb76e8000) => /lib/i686/cmov/ (0xb75a1000) => /lib/i686/cmov/ (0xb757a000) /lib/ (0xb77f4000) => /lib/ (0xb755c000) CC_STATIC_LIBSTDCXX=y: $ ldd arm-unknown-linux-uclibcgnueabi-gcc => (0xb7843000) => /lib/i686/cmov/ (0xb76e6000) /lib/ (0xb7844000) I made CC_STATIC_LIBSTDCXX default=y since I think it is always desirable. Signed-off-by: Johannes Stezenbach <>
Diffstat (limited to 'config')
1 files changed, 12 insertions, 0 deletions
diff --git a/config/cc/ b/config/cc/
index d682769..cfef3f1 100644
--- a/config/cc/
+++ b/config/cc/
@@ -7,6 +7,18 @@ config CC_GCC_ENABLE_TARGET_OPTSPACE
This will compile crossgcc's libs with -Os.
+ bool
+ prompt "Link libstdc++ statically into the gcc binary"
+ default y
+ depends on CC_GCC_4_4_or_later
+ help
+ Newer gcc versions use the PPL library which is C++ code. Statically
+ linking libstdc++ increases the likeliness that the gcc binary will
+ run on machines other than the one which it was built on, without
+ having to worry about distributing the matching version of libstdc++
+ along with it.
comment "Misc. obscure options."