summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2021-08-16 11:50:05 +0200
committer Matteo Bernardini2021-08-16 17:51:14 +0200
commit17287e8b746593425a4e1a03e525c393b8fd18e0 (patch)
tree90110dc7ea18bc25664712252fc4a309b085a9e8
parent74145a8292de43a19888d451109b0ffcb138109f (diff)
downloadslackbuilds-17287e8b746593425a4e1a03e525c393b8fd18e0.tar.gz
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>
-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 ffd4256493..be524a75a7 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 \