mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 04:48:10 +02:00
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
This commit is contained in:
parent
bb90127c2a
commit
6eccfda0fa
1 changed files with 3 additions and 2 deletions
|
|
@ -831,10 +831,11 @@ AM_CONDITIONAL(BUILD_NMTUI, test "$build_nmtui" = yes)
|
||||||
|
|
||||||
NM_COMPILER_WARNINGS
|
NM_COMPILER_WARNINGS
|
||||||
|
|
||||||
AC_ARG_ENABLE(lto, AS_HELP_STRING([--enable-lto], [Enable Link Time Optimization for smaller size (default: no)]),
|
AC_ARG_ENABLE(lto, AS_HELP_STRING([--enable-lto], [Enable Link Time Optimization for smaller size (default: no)]))
|
||||||
[enable_lto=yes], [enable_lto=no])
|
|
||||||
if (test "${enable_lto}" = "yes"); then
|
if (test "${enable_lto}" = "yes"); then
|
||||||
CFLAGS="-flto $CFLAGS"
|
CFLAGS="-flto $CFLAGS"
|
||||||
|
else
|
||||||
|
enable_lto='no'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue