File tree 3 files changed +29
-0
lines changed
3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -395,6 +395,21 @@ menu "Global build settings"
395
395
Note that this will make the system libraries incompatible with most of the packages
396
396
that are not selected during the build process
397
397
398
+ choice
399
+ prompt "Preferred standard C++ library"
400
+ default USE_LIBSTDCXX if USE_EGLIBC
401
+ default USE_UCLIBCXX
402
+ help
403
+ Select the preferred standard C++ library for all packages that support this.
404
+
405
+ config USE_UCLIBCXX
406
+ bool "uClibc++"
407
+
408
+ config USE_LIBSTDCXX
409
+ bool "libstdc++"
410
+
411
+ endchoice
412
+
398
413
endmenu
399
414
400
415
menuconfig DEVEL
Original file line number Diff line number Diff line change 5
5
# See /LICENSE for more information.
6
6
#
7
7
8
+ __package_mk: =1
9
+
8
10
all : $(if $(DUMP ) ,dumpinfo,compile)
9
11
10
12
PKG_BUILD_DIR ?= $(BUILD_DIR ) /$(PKG_NAME )$(if $(PKG_VERSION ) ,-$(PKG_VERSION ) )
Original file line number Diff line number Diff line change
1
+ ifndef DUMP
2
+ ifdef __package_mk
3
+ $(error uclibc++.mk must be included before package.mk)
4
+ endif
5
+ endif
6
+
7
+ PKG_PREPARED_DEPENDS += CONFIG_USE_UCLIBCXX
8
+ CXX_DEPENDS = +USE_UCLIBCXX:uclibcxx +USE_LIBSTDCXX:libstdcpp
9
+
10
+ ifneq ($(CONFIG_USE_UCLIBCXX ) ,)
11
+ TARGET_CXX ="g++-uc"
12
+ endif
You can’t perform that action at this time.
0 commit comments