From bdfc00171ed8c2e24fc43fbe9455d4826a4fa4e2 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 18 Jun 2012 16:12:09 +1000 Subject: [PATCH] Use 'none' partition with LTO --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 683a5742..0f22e82d 100644 --- a/configure.ac +++ b/configure.ac @@ -141,8 +141,10 @@ if test "x$ac_cv_debugging" = "xyes"; then AC_DEFINE([_GLIBCXX_DEBUG], [], [Description]) else - COMMON_CFLAGS="$COMMON_CFLAGS -O2 -flto=jobserver" - COMMON_LDFLAGS="$COMMON_LDFLAGS -flto=jobserver" + ## Use 'none' LTO partitioning to avoid discarded section linker errors + ## against boost + COMMON_CFLAGS="$COMMON_CFLAGS -O2 -flto=8 -flto-partition=none" + COMMON_LDFLAGS="$COMMON_LDFLAGS -flto=8 -flto-partition=none" fi case $host_os in