summaryrefslogtreecommitdiffstats
path: root/slackware64-current/source/n/samba/samba.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'slackware64-current/source/n/samba/samba.SlackBuild')
-rwxr-xr-xslackware64-current/source/n/samba/samba.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/slackware64-current/source/n/samba/samba.SlackBuild b/slackware64-current/source/n/samba/samba.SlackBuild
index b7abcf6e8..dff64cbb1 100755
--- a/slackware64-current/source/n/samba/samba.SlackBuild
+++ b/slackware64-current/source/n/samba/samba.SlackBuild
@@ -71,6 +71,8 @@ case "$ARCH" in
*) TARGET=$ARCH-slackware-linux ;;
esac
+NUMJOBS=${NUMJOBS:-" -j7 "}
+
TMP=${TMP:-/tmp}
PKG=$TMP/package-samba
rm -rf $PKG
@@ -134,11 +136,19 @@ CFLAGS="$SLKCFLAGS" \
#--builtin-libraries=replace,ccan \
#--bundled-libraries=heimdal \
-# -j options don't seem to work... [Yes they do! At least try to use -j below...]
-JOBS=6
-MAXJOBS=6
-export JOBS MAXJOBS
-make -j $MAXJOBS || make || exit 1
+# Build with waf directly so that multiple jobs work.
+# Script lifted from "./configure".
+PREVPATH=`dirname $0`
+WAF=./buildtools/bin/waf
+# using JOBS=1 gives maximum compatibility with
+# systems like AIX which have broken threading in python
+JOBS=$(echo $NUMJOBS | tr -dc '0-9')
+export JOBS
+# Make sure we don't have any library preloaded.
+unset LD_PRELOAD
+cd . || exit 1
+${PYTHON:=python} $WAF build "$@" || exit 1
+cd $PREVPATH
mkdir -p \
$PKG/usr/doc/samba-$VERSION \