summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-20 13:37:11 +0200
committerMichael Adam <obnox@samba.org>2009-11-13 16:19:40 +0100
commit05ba2ee810842bbe8333e70d3c6bd6217378698d (patch)
tree22607bb9e04ef3c61848fdd3383fbbb6bd7e8da1 /packaging
parent609a600e156baa61fe4530fb55c60f6b8cc7af1e (diff)
downloadsamba-05ba2ee810842bbe8333e70d3c6bd6217378698d.tar.gz
samba-05ba2ee810842bbe8333e70d3c6bd6217378698d.tar.bz2
samba-05ba2ee810842bbe8333e70d3c6bd6217378698d.zip
packaging(RHEL-CTDB): enable parallel build
Michael
Diffstat (limited to 'packaging')
-rw-r--r--packaging/RHEL-CTDB/samba.spec.tmpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/packaging/RHEL-CTDB/samba.spec.tmpl b/packaging/RHEL-CTDB/samba.spec.tmpl
index 88cfe01e19..48b2c5c4b9 100644
--- a/packaging/RHEL-CTDB/samba.spec.tmpl
+++ b/packaging/RHEL-CTDB/samba.spec.tmpl
@@ -43,6 +43,7 @@ BuildRequires: pam-devel, readline-devel, fileutils, libacl-devel, openldap-deve
%define _libarchdir /usr/%{_libarch}
+%define numcpu %(grep "^processor" /proc/cpuinfo |wc -l | sed -e 's/^0$/1/')
%description
Samba is the protocol by which a lot of PC-related machines share
@@ -200,7 +201,7 @@ if [ ${CC_MAJOR} -ge 3 ]; then
fi
fi
-make %{?_smp_mflags} \
+make -j%{numcpu} %{?_smp_mflags} \
nss_modules pam_modules
rm -rf %{_32bit_tmp_dir}
@@ -266,7 +267,7 @@ if [ ${CC_MAJOR} -ge 3 ]; then
fi
-make %{?_smp_mflags} \
+make -j %{numcpu} %{?_smp_mflags} \
all modules pam_smbpass
# Remove some permission bits to avoid to many dependencies