Skip to content
Snippets Groups Projects
Commit cf788fc7 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

build: add a config option for choosing the prefered standard c++ library and...

build: add a config option for choosing the prefered standard c++ library and add uclibc++.mk to make this easy to handle in packages

SVN-Revision: 32369
parent 3051de87
No related branches found
No related tags found
No related merge requests found
...@@ -395,6 +395,21 @@ menu "Global build settings" ...@@ -395,6 +395,21 @@ menu "Global build settings"
Note that this will make the system libraries incompatible with most of the packages Note that this will make the system libraries incompatible with most of the packages
that are not selected during the build process 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++"
config USE_LIBSTDCXX
bool "libstdc++"
endchoice
endmenu endmenu
menuconfig DEVEL menuconfig DEVEL
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
# See /LICENSE for more information. # See /LICENSE for more information.
# #
__package_mk:=1
all: $(if $(DUMP),dumpinfo,compile) all: $(if $(DUMP),dumpinfo,compile)
PKG_BUILD_DIR ?= $(BUILD_DIR)/$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION)) PKG_BUILD_DIR ?= $(BUILD_DIR)/$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION))
......
ifndef DUMP
ifdef __package_mk
$(error uclibc++.mk must be included before package.mk)
endif
endif
PKG_PREPARED_DEPENDS += CONFIG_USE_UCLIBCXX
CXX_DEPENDS = +USE_UCLIBCXX:uclibcxx +USE_LIBSTDCXX:libstdcpp
ifneq ($(CONFIG_USE_UCLIBCXX),)
TARGET_CXX="g++-uc"
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment