summaryrefslogtreecommitdiff
path: root/config/cc
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2016-02-26 11:58:09 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2016-02-26 12:14:39 (GMT)
commitb3869e933b29286fe362e68fbda3184acf655de8 (patch)
treee3e960761bbe488b0d7a9f0ae4c1a6148656d5be /config/cc
parentc66d5c20cf78b6ab144e77788eedcaecb17e2e6f (diff)
config: Add static link check to static options
If we can't static link with gcc, then don't allow static linking. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Diffstat (limited to 'config/cc')
-rw-r--r--config/cc/gcc.in.21
1 files changed, 1 insertions, 0 deletions
diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2
index 50a0574..17b41cc 100644
--- a/config/cc/gcc.in.2
+++ b/config/cc/gcc.in.2
@@ -56,6 +56,7 @@ 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
help
Newer gcc versions require some c++ libraries. So statically