aboutsummaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2022-03-03 23:31:45 +1300
committerAndrew Clemons <andrew.clemons@gmail.com>2022-03-05 00:17:45 +1300
commit6ba1ab2a61a5578e6ac48357a6c988803804897b (patch)
treeba1a7aadee6939e4f0e962a8735b17f27e7bd69a /office
parent1b9116cd1dfd47817d1351926a76eeb59a285ddc (diff)
office/pdfchain: Fix build on 15.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'office')
-rw-r--r--office/pdfchain/pdfchain.SlackBuild12
1 files changed, 12 insertions, 0 deletions
diff --git a/office/pdfchain/pdfchain.SlackBuild b/office/pdfchain/pdfchain.SlackBuild
index 4f0fb7bc57f92..16d6aeb4c8995 100644
--- a/office/pdfchain/pdfchain.SlackBuild
+++ b/office/pdfchain/pdfchain.SlackBuild
@@ -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 \