configure.ac: hide internal symbols

Allows eliminating more dead code.  Adds two more C++ options that may
reduce the binary size.
This commit is contained in:
Max Kellermann 2013-01-02 19:02:29 +01:00
parent dc32d1f3f3
commit 7768baa4d1

View File

@ -1533,10 +1533,14 @@ if test "x$enable_debug" = xno; then
AX_APPEND_COMPILE_FLAGS([-ffunction-sections])
AX_APPEND_COMPILE_FLAGS([-fdata-sections])
AX_APPEND_COMPILE_FLAGS([-fvisibility=hidden])
AC_LANG_PUSH([C++])
AX_APPEND_COMPILE_FLAGS([-ffunction-sections])
AX_APPEND_COMPILE_FLAGS([-fdata-sections])
AX_APPEND_COMPILE_FLAGS([-fvisibility=hidden])
AX_APPEND_COMPILE_FLAGS([-fno-threadsafe-statics])
AX_APPEND_COMPILE_FLAGS([-fmerge-all-constants])
AC_LANG_POP
AX_APPEND_LINK_FLAGS([-Wl,--gc-sections])