hide C++ standard library selection behind INSTALL_LIBSTDCPP
authorFlorian Fainelli <florian@openwrt.org>
Wed, 24 Oct 2012 13:05:07 +0000 (13:05 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 24 Oct 2012 13:05:07 +0000 (13:05 +0000)
If our toolchain is not configured to support C++, it is pointless choosing
a particular C++ standard library implementation.

SVN-Revision: 33907

Config.in

index cca5a4c0f0cc37b0e12ccf92778a4cd9cec723ac..46f7ce8385f2e0be51220ba1a1ce111c13226e4d 100644 (file)
--- 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