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:
parent
dc32d1f3f3
commit
7768baa4d1
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user