commit 09ed6134d58845e9f312658883f425a36d20773e
Author: Jan Palus <[email protected]>
Date:   Tue Mar 30 12:44:04 2021 +0200

    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)

 builder.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
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)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/09ed6134d58845e9f312658883f425a36d20773e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to