aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-11-24 21:28:31 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-11-25 09:46:39 +0700
commitc240b083530e896cdc24bafdc6c458516c4c32b4 (patch)
tree36f04792f3f9a0bee46a6111a36e687ccf5f3eab
parent523d815b26e2e0892b9e0d891efd90dc2f63b3be (diff)
system/nut: Use the C++14 standard.
gcc >= 11.x defaults to -std=gnu++17 and it breaks the build in this case: thanks to sairum on LQ Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/nut/nut.SlackBuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/nut/nut.SlackBuild b/system/nut/nut.SlackBuild
index 5fcf4359ab5d7..2bfb6ce88de7b 100644
--- a/system/nut/nut.SlackBuild
+++ b/system/nut/nut.SlackBuild
@@ -96,7 +96,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS -std=c++14" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \