Add BUILDOPTS to srpm target
[libvirt.git] / Makefile
index b5d28e8..9bd1e06 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -44,7 +44,7 @@ trees: sources
         rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bp --target $(PREPARCH) $(SPECFILE)
 
 srpm: sources
-        rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps -bs $(SPECFILE)
+        rpmbuild $(RPMDIRDEFS) $(RPMDEFS) --nodeps $(BUILDOPTS) -bs $(SPECFILE)
 
 TARGET ?= $(shell uname -m)
 rpm: sources