build: set appropriate LTO options

This commit is contained in:
Danny Robson 2014-08-12 15:59:00 +10:00
parent 2eaf2ee73c
commit 26ee9b608b

View File

@ -173,12 +173,10 @@ AS_IF([test "x$enable_debugging" = "xyes"], [
AX_APPEND_COMPILE_FLAGS([-O0], [], [-Werror])
], [
AX_APPEND_COMPILE_FLAGS([-O2], [], [-Werror])
AX_APPEND_COMPILE_FLAGS([-flto=8], [], [-Werror])
AX_APPEND_COMPILE_FLAGS([-flto], [], [-Werror])
AX_APPEND_COMPILE_FLAGS([-flto-partition=none], [], [-Werror])
AX_APPEND_LINK_FLAGS([-flto=8], [], [-Werror])
AX_APPEND_LINK_FLAGS([-flto-partition=none], [], [-Werror])
AX_APPEND_LINK_FLAGS([-fwhole-program], [], [-Werror])
AX_APPEND_LINK_FLAGS([-fuse-linker-plugin], [], [-Werror])
])
AS_CASE([$host_os],