From 856ea2bad3b3eac565215c0ac79f37a4ba4cd5b7 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Fri, 13 Dec 2019 21:07:04 -0800 Subject: libcxx: Add package Currently in OpenWrt, there are two libc++: libstdcpp and uClibc++. The former is huge and the latter supports only C++98 with some basic support for C++11. Those C++ versions seem to be specific to the compiler version libcxx supports C++11 and above while being much smaller than libstdcpp. On mt7621, these are the sizes of the ipks that I get: libstdcpp: 460786 libcxx: 182881 uClibc++:67720 libcxx is faster than uClibc++ and is under active development as part of the LLVM project while uClibc++ is effectively dead. This PR modifies uclibc++.mk to expose the make menuconfig option. Further cleanup is beyond the scope of this PR. What that means is, this is not used by default. A g++-libcxx wrapper based on the uClibc++ one was added. Works the same way. Compile tested with all packages that use uclibc++.mk in their Makefiles under mipsel_24kc. kismet fails compilation but that package needs to be cleaned up and updated. Runtime tested with gddrescue, gdisk, dcwapd, bonnie++, and aircrack-ng on a TP-Link Archer C7v2. Signed-off-by: Rosen Penev --- config/Config-build.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config/Config-build.in') diff --git a/config/Config-build.in b/config/Config-build.in index 872e5c12ab..bde5730e76 100644 --- a/config/Config-build.in +++ b/config/Config-build.in @@ -197,6 +197,9 @@ menu "Global build settings" config USE_UCLIBCXX bool "uClibc++" + config USE_LIBCXX + bool "libc++" + config USE_LIBSTDCXX bool "libstdc++" endchoice -- cgit v1.2.3