comparison configure.ac @ 2153:f57b0eea9201

Remove LTO again. It makes linking very slow, I'm not noticing any practical difference in performance, it doesn't work correctly on Travis image etc, and it sometimes breaks in incremental builds.
author Chris Cannam
date Thu, 06 Dec 2018 09:55:36 +0000
parents f474b3931217
children 57a54d84120c
comparison
equal deleted inserted replaced
2152:60d78294ea3a 2153:f57b0eea9201
58 if test "x$GCC" = "xyes"; then 58 if test "x$GCC" = "xyes"; then
59 CXXFLAGS_ANY="-fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe" 59 CXXFLAGS_ANY="-fpic -Wall -Wextra -Woverloaded-virtual -Wformat-nonliteral -Wformat-security -Winit-self -Wswitch-enum -Wconversion -pipe"
60 CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror" 60 CXXFLAGS_DEBUG="$CXXFLAGS_ANY -g -Werror"
61 OPTFLAGS_DEBUG="-O2" 61 OPTFLAGS_DEBUG="-O2"
62 CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0" 62 CXXFLAGS_RELEASE="$CXXFLAGS_ANY -g0"
63 LDFLAGS_RELEASE="-fuse-linker-plugin" 63 OPTFLAGS_RELEASE="-O3 -ffast-math"
64 OPTFLAGS_RELEASE="-O3 -ffast-math -flto"
65 LIBS_DEBUG="$LIBS" 64 LIBS_DEBUG="$LIBS"
66 AX_CHECK_COMPILE_FLAG(--std=$CXXSTANDARD, [], [AC_MSG_NOTICE([Compiler does not appear to support $CXXSTANDARD, falling back to c++11]) 65 AX_CHECK_COMPILE_FLAG(--std=$CXXSTANDARD, [], [AC_MSG_NOTICE([Compiler does not appear to support $CXXSTANDARD, falling back to c++11])
67 CXXSTANDARD=c++11]) 66 CXXSTANDARD=c++11])
68 fi 67 fi
69 68