summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-01-08 12:01:32 +0100
committerThomas Haller <thaller@redhat.com>2015-01-08 12:03:50 +0100
commit6eccfda0face594f86dea495d2ed2546b0d37e77 (patch)
tree922a988bbea667d27002d3c209a80fd36402a839
parentbb90127c2a8980e02bb53340ab4bd25f0dfefea8 (diff)
downloadNetworkManager-6eccfda0face594f86dea495d2ed2546b0d37e77.tar.gz
build: fix --enable-lto configure option to allow disabling option explicitly
When specifying '--enable-lto=anything' or '--disable-lto', the configure script would always set enable_lto=yes. The only way to disable lto, was *not* specifying the configure option. https://bugzilla.gnome.org/show_bug.cgi?id=742575
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index bf253a5d1b..88e4ddc716 100644
--- a/configure.ac
+++ b/configure.ac
@@ -831,10 +831,11 @@ AM_CONDITIONAL(BUILD_NMTUI, test "$build_nmtui" = yes)
NM_COMPILER_WARNINGS
-AC_ARG_ENABLE(lto, AS_HELP_STRING([--enable-lto], [Enable Link Time Optimization for smaller size (default: no)]),
- [enable_lto=yes], [enable_lto=no])
+AC_ARG_ENABLE(lto, AS_HELP_STRING([--enable-lto], [Enable Link Time Optimization for smaller size (default: no)]))
if (test "${enable_lto}" = "yes"); then
CFLAGS="-flto $CFLAGS"
+else
+ enable_lto='no'
fi