libcxx: Add size optimizations
authorRosen Penev <rosenp@gmail.com>
Wed, 1 Jan 2020 03:37:35 +0000 (19:37 -0800)
committerJo-Philipp Wich <jo@mein.io>
Wed, 1 Jan 2020 15:59:32 +0000 (16:59 +0100)
commit9f7d36d1a995c03a8eaccf10f06f57332bc5c1c0
tree24158b4610333700608b0b1ddb37b4e711573ce8
parent1f8ab1c6406451641c05e8cb1e72f7c173a114a3
libcxx: Add size optimizations

Changed standard to 2a. 2a (as well as 17) contain more constexpr
functions, which are evaluated at compile time. This saves space.

Added --gc-sections. With the CXXABI change, this now makes the package
smaller.

With these, size went down to 210845 on mipsel_24kc.

Also fixed two small compiler warnings. No real change in behavior.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
package/libs/libcxx/Makefile
package/libs/libcxx/patches/010-cxx17.patch [new file with mode: 0644]
package/libs/libcxx/patches/020-fixes.patch [new file with mode: 0644]