summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-04 20:37:25 +0100
committerSam James <sam@gentoo.org>2021-08-04 20:37:41 +0100
commita1af71cd65bb61bf0f39a5051723ba89508da5b4 (patch)
treee8feca2d1f7b8ad04444ae0a7293a09cede00887 /sys-power/nut
parentdev-python/tomli: Fix circular dep with pyproject2setuppy (diff)
downloadgentoo-a1af71cd65bb61bf0f39a5051723ba89508da5b4.tar.gz
gentoo-a1af71cd65bb61bf0f39a5051723ba89508da5b4.tar.bz2
gentoo-a1af71cd65bb61bf0f39a5051723ba89508da5b4.zip
sys-power/nut: workaround build failure with GCC 11
Closes: https://bugs.gentoo.org/786702 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-power/nut')
-rw-r--r--sys-power/nut/nut-2.7.4-r7.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys-power/nut/nut-2.7.4-r7.ebuild b/sys-power/nut/nut-2.7.4-r7.ebuild
index 581389d74b18..fe89715a5ff3 100644
--- a/sys-power/nut/nut-2.7.4-r7.ebuild
+++ b/sys-power/nut/nut-2.7.4-r7.ebuild
@@ -110,7 +110,11 @@ src_prepare() {
src_configure() {
local myconf
+
append-flags -fno-lto
+ # bug #786702
+ append-cxxflags -std=c++14
+
tc-export CC
tc-export CXX
tc-export AR