on -j define __jobs instead of _smp_mflags
authorJan Palus <atler@pld-linux.org>
Tue, 30 Mar 2021 10:44:04 +0000 (12:44 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 30 Mar 2021 10:44:04 +0000 (12:44 +0200)
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

index c93a68228111960a201cab12f04b09a1564e5d08..53ef564791a62e735978a5709a6aab3dbfc94abe 100755 (executable)
@@ -2189,11 +2189,11 @@ while [ $# -gt 0 ]; do
                --http )
                        PROTOCOL="http"; shift ;;
                -j)
                --http )
                        PROTOCOL="http"; shift ;;
                -j)
-                       RPMOPTS="${RPMOPTS} --define \"_smp_mflags -j$2\""
+                       RPMOPTS="${RPMOPTS} --define \"__jobs $2\""
                        shift 2
                        ;;
                -j[0-9]*)
                        shift 2
                        ;;
                -j[0-9]*)
-                       RPMOPTS="${RPMOPTS} --define \"_smp_mflags $1\""
+                       RPMOPTS="${RPMOPTS} --define \"__jobs ${1#-j}\""
                        shift
                        ;;
                -p)
                        shift
                        ;;
                -p)
This page took 0.080514 seconds and 4 git commands to generate.