From cf788fc7317c3e4a5bab17194c680ed5b0df39a7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau 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 SVN-Revision: 32369 --- include/uclibc++.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/uclibc++.mk (limited to 'include/uclibc++.mk') diff --git a/include/uclibc++.mk b/include/uclibc++.mk new file mode 100644 index 0000000000..817484377f --- /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