office/pdfchain: Fix build on 15.0.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
This commit is contained in:
Andrew Clemons 2022-03-03 23:31:45 +13:00
parent 1b9116cd1d
commit 6ba1ab2a61
No known key found for this signature in database
GPG key ID: CD26380FFACBDA2B

View file

@ -79,6 +79,18 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# pdftk is a dependency, and needs the gcc package to build. If we installed
# that and sourced gcc5.sh, pdfchain won't build. We check for that here and
# unset the vars.
if [ "$CC" = "gcc-5" ] ; then
unset CC
unset CPP
unset CXX
unset AR
unset NM
unset RANLIB
fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS -std=c++11" \
./configure \