summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorUkJung Kim <ujkim@samsung.com>2017-04-26 09:23:13 (GMT)
committerUkJung Kim <ujkim@samsung.com>2017-04-26 09:28:03 (GMT)
commit80c19ff620c189453e761f7a398528cc27032493 (patch)
tree387f978b492a51313a2b9778057c4a30f9085199 /packaging
parent453b43e18f3d425c58128885aa9b8bea01f8741f (diff)
downloadboost-80c19ff620c189453e761f7a398528cc27032493.zip
boost-80c19ff620c189453e761f7a398528cc27032493.tar.gz
boost-80c19ff620c189453e761f7a398528cc27032493.tar.bz2
Adjust parallel build to speed up build timerefs/changes/63/127163/1
set JOBS to %{jobs} pass %{_smp_mflags} to b2 install Change-Id: Ifbd4ac0e7db90b48a7a4c118ef2d84c8497d54a3
Diffstat (limited to 'packaging')
-rw-r--r--packaging/boost.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging/boost.spec b/packaging/boost.spec
index bfb9429..030f3b3 100644
--- a/packaging/boost.spec
+++ b/packaging/boost.spec
@@ -371,6 +371,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
@@ -461,7 +462,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