Use 'none' partition with LTO
This commit is contained in:
parent
baf8ded43d
commit
bdfc00171e
@ -141,8 +141,10 @@ if test "x$ac_cv_debugging" = "xyes"; then
|
|||||||
AC_DEFINE([_GLIBCXX_DEBUG], [], [Description])
|
AC_DEFINE([_GLIBCXX_DEBUG], [], [Description])
|
||||||
|
|
||||||
else
|
else
|
||||||
COMMON_CFLAGS="$COMMON_CFLAGS -O2 -flto=jobserver"
|
## Use 'none' LTO partitioning to avoid discarded section linker errors
|
||||||
COMMON_LDFLAGS="$COMMON_LDFLAGS -flto=jobserver"
|
## against boost
|
||||||
|
COMMON_CFLAGS="$COMMON_CFLAGS -O2 -flto=8 -flto-partition=none"
|
||||||
|
COMMON_LDFLAGS="$COMMON_LDFLAGS -flto=8 -flto-partition=none"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $host_os in
|
case $host_os in
|
||||||
|
Loading…
Reference in New Issue
Block a user