Commit 7768baa4 authored by Max Kellermann's avatar Max Kellermann

configure.ac: hide internal symbols

Allows eliminating more dead code. Adds two more C++ options that may reduce the binary size.
parent dc32d1f3
......@@ -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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment