summaryrefslogtreecommitdiffstats
path: root/audio/nas/nas.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/nas/nas.SlackBuild')
-rw-r--r--audio/nas/nas.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/audio/nas/nas.SlackBuild b/audio/nas/nas.SlackBuild
index 1c99a3f482..cdc965996f 100644
--- a/audio/nas/nas.SlackBuild
+++ b/audio/nas/nas.SlackBuild
@@ -68,6 +68,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Thanks to Gregory Guy for pointing me at the patch
+# https://aur.archlinux.org/cgit/aur.git/tree/patch-llvm11.patch?h=nas
+patch -p0 < $CWD/patch-llvm11.patch
+
xmkmf
cd config
CFLAGS="$SLKCFLAGS" \
@@ -79,11 +83,13 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--infodir=/usr/info \
+ --disable-static \
--build=$ARCH-slackware-linux
cd ..
-make CFLAGS="$SLKCFLAGS" World
-make install.man install DESTDIR=$PKG
+# Multiple jobs fail
+make -j1 AR="ar cq" World
+make -j1 install.man install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true