summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-08 15:34:23 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-08 15:34:23 +0000
commitdf5c1e6f54ed167ec4b2298f70ac9beb100065ca (patch)
tree324c5be40b4505217dca19f8497087e85fcc48fb /toolchain
parent39fdaaf30e4ebe9d774db6235cbbabf26f12469d (diff)
[toolchain] introduce a USE_EXTERNAL_LIBC symbol which gets selected by EXTERNAL_TOOLCHAIN || NATIVE_TOOLCHAIN
Currently we always assume uClibc if an external toolchain is used, this breaks for non-uClibc toolchains or even vanilla uClibc ones since they do not share the external librpc semantics as OpenWrt. Solve the problem by defining an abstract "EXTERNAL_LIBC" which packages might or might not depend on. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29689 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/Config.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/toolchain/Config.in b/toolchain/Config.in
index 75450327fe..c027be8212 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -175,7 +175,11 @@ config INSIGHT
config USE_UCLIBC
bool
- default y if !TOOLCHAINOPTS
+ default y if !TOOLCHAINOPTS && !EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
+
+config USE_EXTERNAL_LIBC
+ bool
+ default y if EXTERNAL_TOOLCHAIN || NATIVE_TOOLCHAIN
source "toolchain/gcc/Config.version"