From eb1c7a641f92531c42e63ad00542d31c02de20b7 Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 14 Jun 2012 20:26:04 +0000 Subject: build: add a config option for choosing the prefered standard c++ library and add uclibc++.mk to make this easy to handle in packages git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32369 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/package.mk | 2 ++ include/uclibc++.mk | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 include/uclibc++.mk (limited to 'include') diff --git a/include/package.mk b/include/package.mk index e955c207a..abffa0c64 100644 --- a/include/package.mk +++ b/include/package.mk @@ -5,6 +5,8 @@ # See /LICENSE for more information. # +__package_mk:=1 + all: $(if $(DUMP),dumpinfo,compile) PKG_BUILD_DIR ?= $(BUILD_DIR)/$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION)) diff --git a/include/uclibc++.mk b/include/uclibc++.mk new file mode 100644 index 000000000..817484377 --- /dev/null +++ b/include/uclibc++.mk @@ -0,0 +1,12 @@ +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 -- cgit v1.2.3