boost: fix the LDFLAGS and reduce the package size
authorVan Waholtz <redacted>
Thu, 15 Oct 2020 06:31:56 +0000 (23:31 -0700)
committerVan Waholtz <redacted>
Sat, 17 Oct 2020 13:17:14 +0000 (06:17 -0700)
commiteaa201b7746224d9b7125a27fb5843ad21e203fe
tree19b6343929b8063fbcf1b2248c617a43cc49e354
parent9156655ce97c3a5d86a1d462fe72fde4336336bb
boost: fix the LDFLAGS and reduce the package size
1. Add -lstdc++ to LDFLAGS.
2. Add "-Wl,--gc-sections,--as-needed" to LDFLAGS and "-ffunction-sections -fdata-sections -flto" to CFLAGS which will reduce the size by 10% ~ 13%.
3. Only a virtual package will be created if only static libs are built, which will avoid compiliation failures.
4. Other improvements

Signed-off-by: Van Waholtz <redacted>
libs/boost/Makefile
git clone https://git.99rst.org/PROJECT