summaryrefslogtreecommitdiff
path: root/config/cc/gcc.in.2
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-03-30 06:13:08 (GMT)
committerGitHub <noreply@github.com>2017-03-30 06:13:08 (GMT)
commita7edff1820d89b45449c7764644fbfa3562e3297 (patch)
treeeee13dd4cd1ce0ba5215d1d6cfa6967e9fc3b22b /config/cc/gcc.in.2
parent54a4975220e6a277e93f7844bb79c2dbf5554d16 (diff)
parent6af04d822bdcd533ce731ba245f50bfbc22ed4a4 (diff)
Merge pull request #667 from stilor/cross-gdb-deps
cross-gdb: account for canadian/crossnative toolchains
Diffstat (limited to 'config/cc/gcc.in.2')
-rw-r--r--config/cc/gcc.in.25
1 files changed, 3 insertions, 2 deletions
diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2
index b4c5528..c147f05 100644
--- a/config/cc/gcc.in.2
+++ b/config/cc/gcc.in.2
@@ -66,8 +66,9 @@ config CC_GCC_STATIC_LIBSTDCXX
bool
prompt "Link libstdc++ statically into the gcc binary"
default y
- depends on CONFIGURE_has_static_link
- select WANTS_STATIC_LINK
+ depends on CONFIGURE_has_static_link || CANADIAN || CROSS_NATIVE
+ select WANTS_STATIC_LINK if CROSS || NATIVE
+ select WANTS_STATIC_LINK_CXX if CROSS || NATIVE
help
Newer gcc versions require some c++ libraries. So statically
linking libstdc++ increases the likeliness that the gcc binary will