From 26ee9b608b07fda4784837d8d2d5a31de5f4c17d Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 12 Aug 2014 15:59:00 +1000 Subject: [PATCH] build: set appropriate LTO options --- configure.ac | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index e4ecd36e..62202fd0 100644 --- a/configure.ac +++ b/configure.ac @@ -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],