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>
This commit is contained in:
Matteo Bernardini 2021-08-16 11:50:05 +02:00 committed by Willy Sudiarto Raharjo
parent 4360281af5
commit 11fa1509b2
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -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 \