summaryrefslogtreecommitdiff
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:31:03 (GMT)
commit7b0d82e6cf36838f5159c18030361fffe75cf803 (patch)
tree7b14dacd1d0fd9e97e01416d9e72064ca9a04b5d
parent4bf49f6cfbcd119593a3d9300a5b49b00d6253c2 (diff)
downloadboost-accepted/tizen_3.0_tv.zip
boost-accepted/tizen_3.0_tv.tar.gz
boost-accepted/tizen_3.0_tv.tar.bz2
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 4f9496b..014db44 100644
--- a/packaging/boost.spec
+++ b/packaging/boost.spec
@@ -375,6 +375,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
@@ -464,7 +465,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