Currently, if we do a 'make rpm-pkg' without the _smp_mflags rpm macro defined, the build fails with: [snip] Executing(%build): /bin/bash -e /var/tmp/rpm-tmp.67959 + umask 022 + cd /home/jk/devel/kernel-snapshot/rpm/BUILD + cd kernel-2.6.26 + make clean + make '%{_smp_mflags}' make[3]: *** No rule to make target `%{_smp_mflags}'. Stop. error: Bad exit status from /var/tmp/rpm-tmp.67959 (%build) This change uses the 'null if not set' reference to the _smp_mflags macro instead.
Showing the changes to scripts/package (1 of 1 file). Show all
Unified · Split
| @@ -57,7 +57,7 @@ fi · 56 unmodified lines | |||
| 57 | echo "%build" | 57 | echo "%build" |
| 58 | 58 | ||
| 59 | if ! $PREBUILT; then | 59 | if ! $PREBUILT; then |
| 60 | echo "make clean && make %{_smp_mflags}" | 60 | echo "make clean && make %{?_smp_mflags}" |
| 61 | echo "" | 61 | echo "" |
| 62 | fi | 62 | fi |
| 63 | 63 | ||