build: set appropriate LTO options
This commit is contained in:
parent
2eaf2ee73c
commit
26ee9b608b
@ -173,12 +173,10 @@ AS_IF([test "x$enable_debugging" = "xyes"], [
|
|||||||
AX_APPEND_COMPILE_FLAGS([-O0], [], [-Werror])
|
AX_APPEND_COMPILE_FLAGS([-O0], [], [-Werror])
|
||||||
], [
|
], [
|
||||||
AX_APPEND_COMPILE_FLAGS([-O2], [], [-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_COMPILE_FLAGS([-flto-partition=none], [], [-Werror])
|
||||||
|
|
||||||
AX_APPEND_LINK_FLAGS([-flto=8], [], [-Werror])
|
AX_APPEND_LINK_FLAGS([-fuse-linker-plugin], [], [-Werror])
|
||||||
AX_APPEND_LINK_FLAGS([-flto-partition=none], [], [-Werror])
|
|
||||||
AX_APPEND_LINK_FLAGS([-fwhole-program], [], [-Werror])
|
|
||||||
])
|
])
|
||||||
|
|
||||||
AS_CASE([$host_os],
|
AS_CASE([$host_os],
|
||||||
|
Loading…
Reference in New Issue
Block a user