diff options
-rw-r--r-- | office/pdfchain/pdfchain.SlackBuild | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/office/pdfchain/pdfchain.SlackBuild b/office/pdfchain/pdfchain.SlackBuild index 4f0fb7bc57f9..16d6aeb4c899 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 \ |