aboutsummaryrefslogtreecommitdiff
path: root/audio/nas/nas.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/nas/nas.SlackBuild')
-rw-r--r--audio/nas/nas.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/audio/nas/nas.SlackBuild b/audio/nas/nas.SlackBuild
index f4f0e1ef4aab0..cdc965996fdf4 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,12 +83,13 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--infodir=/usr/info \
+ --disable-static \
--build=$ARCH-slackware-linux
cd ..
-# Multiple jobs fails
-make -j1 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