Apply a size tweak from busybox. Hinders debugging, but saves 10-20% from a binary.

This commit is contained in:
Lauri Kasanen 2015-02-25 15:30:58 +02:00
parent c88790135c
commit 002cb02f4e
1 changed files with 10 additions and 0 deletions

View File

@ -637,6 +637,16 @@ AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
[ac_cv_visiblity_supported=no],
[])
# Defeat .eh_frame bloat (gcc 4.6.3 x86-32 defconfig: 20% smaller busybox binary)
AX_CHECK_COMPILE_FLAG([-fno-unwind-tables],
[CFLAGS="$CFLAGS -fno-unwind-tables"],
[],
[])
AX_CHECK_COMPILE_FLAG([-fno-asynchronous-unwind-tables],
[CFLAGS="$CFLAGS -fno-asynchronous-unwind-tables"],
[],
[])
AX_CHECK_LINK_FLAG([-Wl,-as-needed], [LDFLAGS="$LDFLAGS -Wl,-as-needed"],
[], [])