aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-10-24 13:05:07 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-10-24 13:05:07 +0000
commita91e0d20c2ced1223b1435d33233a64776d324ee (patch)
treed0847bfbac1516d3f79885f36077587c08cb5800
parent835d9c9a76a3bc50f70a64e8d46d8b9b82204068 (diff)
downloadupstream-a91e0d20c2ced1223b1435d33233a64776d324ee.tar.gz
upstream-a91e0d20c2ced1223b1435d33233a64776d324ee.tar.bz2
upstream-a91e0d20c2ced1223b1435d33233a64776d324ee.zip
[buildroot] hide C++ standard library selection behind INSTALL_LIBSTDCPP
If our toolchain is not configured to support C++, it is pointless choosing a particular C++ standard library implementation. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33907 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--Config.in25
1 files changed, 13 insertions, 12 deletions
diff --git a/Config.in b/Config.in
index cca5a4c0f0..46f7ce8385 100644
--- a/Config.in
+++ b/Config.in
@@ -549,20 +549,21 @@ menu "Global build settings"
Note that this will make the system libraries incompatible with most of the packages
that are not selected during the build process
- choice
- prompt "Preferred standard C++ library"
- default USE_LIBSTDCXX if USE_EGLIBC
- default USE_UCLIBCXX
- help
- Select the preferred standard C++ library for all packages that support this.
-
- config USE_UCLIBCXX
- bool "uClibc++"
+ if INSTALL_LIBSTDCPP
+ choice
+ prompt "Preferred standard C++ library"
+ default USE_LIBSTDCXX if USE_EGLIBC
+ default USE_UCLIBCXX
+ help
+ Select the preferred standard C++ library for all packages that support this.
- config USE_LIBSTDCXX
- bool "libstdc++"
+ config USE_UCLIBCXX
+ bool "uClibc++"
- endchoice
+ config USE_LIBSTDCXX
+ bool "libstdc++"
+ endchoice
+ endif
endmenu