[LEDE-DEV] [RFC 6/8] uclibc++: fix gcc 6 build

Felix Fietkau nbd at nbd.name
Thu Jul 14 04:12:24 PDT 2016


On 2016-07-13 15:57, Syrone Wong wrote:
> C++14 added sized deallocation, while uclibc++ deleted all files
> (extracted from libsupc++.a via "ar x") named "del_op*.o"
> in abi/libsupc, so I wrote two wrapper files and let them call
> free(ptr) and ignored the size parameter.
> 
> GCC upstream URL: https://github.com/gcc-mirror/gcc/commit/d1856d2c87b844afb0e31f7aa9502745b3446189
> 
> Signed-off-by: Syrone Wong <wong.syrone at gmail.com>
> ---
> 
> According to https://gcc.gnu.org/gcc-6/changes.html,
> default C++ mode changed to -std=gnu++14 instead of -std=gnu++98, I added the previous
> mode to presist compiler behaviour.
> 
> I think the program in OpenWrt/LEDE codebase linked to libuClibc++ will not use C++14 features.
> This is the best workaround I can come up with.
I dropped the conditional patching, dealt with g++-uc via defaults
change and simplified the patch.

- Felix




More information about the Lede-dev mailing list