summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUkJung Kim <ujkim@samsung.com>2017-04-26 09:23:13 (GMT)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>2018-04-26 10:38:12 (GMT)
commitfca2f5021830bf6e501a5f343fb6b434cefaa543 (patch)
tree2e012d6484de018519caebce2fc524719f883442
parent483303b2da6284a09280f4fe7c2bfad4a3461120 (diff)
downloadboost-fca2f5021830bf6e501a5f343fb6b434cefaa543.zip
boost-fca2f5021830bf6e501a5f343fb6b434cefaa543.tar.gz
boost-fca2f5021830bf6e501a5f343fb6b434cefaa543.tar.bz2
Adjust parallel build to speed up build time
set JOBS to %{jobs} pass %{_smp_mflags} to b2 install Change-Id: Ifbd4ac0e7db90b48a7a4c118ef2d84c8497d54a3
-rw-r--r--packaging/boost.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging/boost.spec b/packaging/boost.spec
index f540448..9e95342 100644
--- a/packaging/boost.spec
+++ b/packaging/boost.spec
@@ -398,6 +398,7 @@ cat << \EOF >.build
# Now build it
J_P=%{jobs}
J_G=$(getconf _NPROCESSORS_ONLN)
+JOBS=${JOBS-$J_P}
[ $J_G -gt 64 ] && J_G=64
if test -z "$JOBS"; then
@@ -493,7 +494,7 @@ BOOST_LIBS="chrono,program_options,thread,system,filesystem,date_time,regex,seri
. /var/mpi-selector/data/$(rpm --qf "%{NAME}-%{VERSION}" -q openmpi).sh
%endif
-./b2 install \
+./b2 install %{?_smp_mflags} \
--prefix=%{buildroot}%{_prefix} --exec-prefix=%{buildroot}%{_bindir} \
--libdir=%{buildroot}%{_libdir} --includedir=%{buildroot}%{_includedir} \
--user-config=./user-config.jam