NetworkManager/contrib
Thomas Haller 8fbf6aeced
contrib/rpm: enable LTO by default on Fedora 33
With Fedora 33, LTO will be enabled by default via CFLAGS in
redhat-rpm-config ([1]).

That basically sets "CFLAGS=-flto -ffat-lto-objects".

Note that we have our own configure/meson option to enable LTO.
With "--with-lto" we set CFLAGS="-flto -flto-partition=none". This
is necessary due ([2], [3]).

So, disable Fedora's automatism, but turn on the suitable configure
option to get working LTO.

[1] 5baaf4a99c
[2] e6cf4213a7 ('build: fix building with LTO')
[3] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200#c28

(cherry picked from commit 839ba57c7f)
2020-08-17 15:40:06 +02:00
..
art/logo artwork: introduce NetworkManager stickers 2019-09-30 17:36:59 +02:00
debian build/debian: install mobile-broadband-provider-info 2019-09-11 14:54:34 +02:00
editors contrib: add emacs config for hacking on NM 2015-08-11 13:42:26 -04:00
fedora contrib/rpm: enable LTO by default on Fedora 33 2020-08-17 15:40:06 +02:00
scripts contrib/scripts: add "checkpatch-git-post-commit-hook" script to contrib/ 2020-02-21 07:40:10 +01:00