]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Use new _make_opts rpm macro for -Otarget.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 1 Nov 2014 16:31:42 +0000 (17:31 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 1 Nov 2014 16:31:42 +0000 (17:31 +0100)
PLD_Builder/rpm_builder.py

index 904bb0e1d9efabedcd71df352f0a7996f5b90c1f..3c94a0b94f79e20924a9eaebed89245a6b3ad096 100644 (file)
@@ -227,7 +227,7 @@ def build_rpm(r, b):
                 if r.max_jobs > 0:
                     max_jobs = max(min(config.max_jobs, r.max_jobs), 1)
                 cmd = "set -ex; : build-id: %(r_id)s; TMPDIR=%(tmpdir)s exec nice -n %(nice)s " \
-                    "rpmbuild -bb --define '_smp_mflags -j%(max_jobs)d' --define '__make /usr/bin/make -Otarget %%{?_smp_mflags}' --define '_pld_builder 1' %(rpmdefs)s %(topdir)s/%(spec)s" % {
+                    "rpmbuild -bb --define '_smp_mflags -j%(max_jobs)d' --define '_make_opts -Otarget' --define '_pld_builder 1' %(rpmdefs)s %(topdir)s/%(spec)s" % {
                     'r_id' : r.id,
                     'tmpdir': tmpdir,
                     'nice' : config.nice,
This page took 0.05922 seconds and 4 git commands to generate.