/[gentoo-x86]/net-misc/networkmanager/files/networkmanager-1.0.0-lto-switch.patch
Gentoo

Contents of /net-misc/networkmanager/files/networkmanager-1.0.0-lto-switch.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Sat Jan 10 14:51:52 2015 UTC (4 years, 3 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
Version bump

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 From cda2802fe960737abb4623166ca4f75a63b5fe5a Mon Sep 17 00:00:00 2001
2 From: Thomas Haller <thaller@redhat.com>
3 Date: Thu, 8 Jan 2015 12:01:32 +0100
4 Subject: build: fix --enable-lto configure option to allow disabling option
5 explicitly
6
7 When specifying '--enable-lto=anything' or '--disable-lto',
8 the configure script would always set enable_lto=yes.
9
10 The only way to disable lto, was *not* specifying the
11 configure option.
12
13 https://bugzilla.gnome.org/show_bug.cgi?id=742575
14 (cherry picked from commit 6eccfda0face594f86dea495d2ed2546b0d37e77)
15
16 diff --git a/configure.ac b/configure.ac
17 index b6bf38e..b407686 100644
18 --- a/configure.ac
19 +++ b/configure.ac
20 @@ -821,10 +821,11 @@ AM_CONDITIONAL(BUILD_NMTUI, test "$build_nmtui" = yes)
21
22 NM_COMPILER_WARNINGS
23
24 -AC_ARG_ENABLE(lto, AS_HELP_STRING([--enable-lto], [Enable Link Time Optimization for smaller size (default: no)]),
25 - [enable_lto=yes], [enable_lto=no])
26 +AC_ARG_ENABLE(lto, AS_HELP_STRING([--enable-lto], [Enable Link Time Optimization for smaller size (default: no)]))
27 if (test "${enable_lto}" = "yes"); then
28 CFLAGS="-flto $CFLAGS"
29 +else
30 + enable_lto='no'
31 fi
32
33
34 --
35 cgit v0.10.2
36

  ViewVC Help
Powered by ViewVC 1.1.20