Skip to content
Snippets Groups Projects
Commit de2b88cc authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

build: remove --enable-lto option

LTO is broken on some systems and should be used carefully. Thus this
option is removed from configure and LTO can be enabled by custom CFLAGS.

close #458
parent 8993a7c3
Branches
Tags
No related merge requests found
......@@ -195,15 +195,6 @@ AS_IF([test "$enable_reuseport" != no], [
AS_IF([test "$enable_reuseport" = yes],[
AC_DEFINE([ENABLE_REUSEPORT], [1], [Use SO_REUSEPORT.])])
# Check for link time optimizations support and predictive commoning
AC_ARG_ENABLE([lto],
AS_HELP_STRING([--enable-lto=yes|no], [enable link-time optimizations, enable if not broken for some extra speed [default=no]]),
[case "${enableval}" in
yes) AX_CHECK_COMPILE_FLAG("-flto", [CFLAGS="$CFLAGS -flto"], []) ;;
no) ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-lto]) ;;
esac])
AX_CHECK_COMPILE_FLAG("-fpredictive-commoning", [CFLAGS="$CFLAGS -fpredictive-commoning"], [], "-Werror")
# Default directories
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment