diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2024-03-11 10:32:51 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-03-11 10:32:51 +0100 |
commit | e14adfc9b7e7e269bc1fa962a4c628935424fd87 (patch) | |
tree | 5eca8a0bea35a746a52041406974a91b6a7802e7 /media-sound/guitarix | |
parent | media-sound/kid3: bump to 3.9.5 (diff) | |
download | gentoo-e14adfc9b7e7e269bc1fa962a4c628935424fd87.tar.gz gentoo-e14adfc9b7e7e269bc1fa962a4c628935424fd87.tar.bz2 gentoo-e14adfc9b7e7e269bc1fa962a4c628935424fd87.zip |
media-sound/guitarix: fixed build with lto
Closes: https://bugs.gentoo.org/926429
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-sound/guitarix')
-rw-r--r-- | media-sound/guitarix/files/guitarix-0.44.1-fix-flto.patch | 16 | ||||
-rw-r--r-- | media-sound/guitarix/guitarix-0.44.1.ebuild | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/media-sound/guitarix/files/guitarix-0.44.1-fix-flto.patch b/media-sound/guitarix/files/guitarix-0.44.1-fix-flto.patch new file mode 100644 index 000000000000..695c89c4de7a --- /dev/null +++ b/media-sound/guitarix/files/guitarix-0.44.1-fix-flto.patch @@ -0,0 +1,16 @@ +From ecea56a6fa388cfcf29aaff3817ddc0e3518637f Mon Sep 17 00:00:00 2001 +From: brummer10 <brummer-@web.de> +Date: Sat, 9 Mar 2024 09:12:36 +0100 +Subject: [PATCH] Fix issue #149 build system: LTO detection fails if + -flto=auto or similar is used + +--- a/waftools/cpu_optimization.py ++++ b/waftools/cpu_optimization.py +@@ -168,6 +168,6 @@ def configure(conf): + conf.env['OPT'] = False + cpu_model = append_optimization_flags(conf, cxxflags) + +- if '-flto' in cxxflags: ++ if any(x.startswith('-flto') for x in cxxflags): + cxxflags.append ("-ffat-lto-objects") + diff --git a/media-sound/guitarix/guitarix-0.44.1.ebuild b/media-sound/guitarix/guitarix-0.44.1.ebuild index 7296f64747af..87ecb97ee87f 100644 --- a/media-sound/guitarix/guitarix-0.44.1.ebuild +++ b/media-sound/guitarix/guitarix-0.44.1.ebuild @@ -66,6 +66,7 @@ PATCHES=( "${FILESDIR}"/${P}-py3.11.patch "${FILESDIR}"/${P}-zita-resampler-1.10.patch "${FILESDIR}"/${P}-gcc-13.patch + "${FILESDIR}"/${P}-fix-flto.patch ) src_configure() { |