aboutsummaryrefslogtreecommitdiff
path: root/system/p7zip
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-08-16 11:50:05 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-08-19 18:33:46 +0700
commit11fa1509b23a40f7286c856f565b560c4fa71965 (patch)
tree3e90c43c9a0f8102bf986703241a1d70fdad8842 /system/p7zip
parent4360281af550f31d06a3234e72e63e4015e011c2 (diff)
system/p7zip: Use the C++14 standard.
gcc >= 11.x defaults to -std=gnu++17 and this breaks the build in this case Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/p7zip')
-rw-r--r--system/p7zip/p7zip.SlackBuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/p7zip/p7zip.SlackBuild b/system/p7zip/p7zip.SlackBuild
index ffd42564931ad..be524a75a7c86 100644
--- a/system/p7zip/p7zip.SlackBuild
+++ b/system/p7zip/p7zip.SlackBuild
@@ -85,7 +85,7 @@ find -L . \
patch -p1 < $CWD/gcc10.patch
make all3 \
- OPTFLAGS="$SLKCFLAGS" \
+ OPTFLAGS="$SLKCFLAGS -std=gnu++14" \
DEST_HOME=/usr \
DEST_SHARE_DOC=/usr/doc/$PRGNAM-$VERSION \
DEST_SHARE=/usr/lib$LIBDIRSUFFIX/p7zip \
@@ -94,7 +94,7 @@ make all3 \
if ! [ "$GUI" = "no" ]; then
sed -i "s|/usr/lib/|/usr/lib$LIBDIRSUFFIX/|g" CPP/7zip/UI/GUI/makefile.depend
make 7zG \
- OPTFLAGS="$SLKCFLAGS" \
+ OPTFLAGS="$SLKCFLAGS -std=gnu++14" \
DEST_HOME=/usr \
DEST_SHARE_DOC=/usr/doc/$PRGNAM-$VERSION \
DEST_SHARE=/usr/lib$LIBDIRSUFFIX/p7zip \