From: Jan Palus Date: Tue, 30 Mar 2021 10:44:04 +0000 (+0200) Subject: on -j define __jobs instead of _smp_mflags X-Git-Tag: auto/th/rpm-build-tools-4.10-1~6 X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm-build-tools.git;a=commitdiff_plain;h=09ed613;ds=sidebyside on -j define __jobs instead of _smp_mflags not all tools use -j syntax for parallelism so instead of redefining _smp_mflags define __jobs (the former is expressed with the latter) --- diff --git a/builder.sh b/builder.sh index c93a682..53ef564 100755 --- a/builder.sh +++ b/builder.sh @@ -2189,11 +2189,11 @@ while [ $# -gt 0 ]; do --http ) PROTOCOL="http"; shift ;; -j) - RPMOPTS="${RPMOPTS} --define \"_smp_mflags -j$2\"" + RPMOPTS="${RPMOPTS} --define \"__jobs $2\"" shift 2 ;; -j[0-9]*) - RPMOPTS="${RPMOPTS} --define \"_smp_mflags $1\"" + RPMOPTS="${RPMOPTS} --define \"__jobs ${1#-j}\"" shift ;; -p)