X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Frules;h=b21c8dbf0be1d232c59a8d3bc06db184cb3dd9c2;hb=3cf54a5632d538b4b81f1c418d198614c63a843d;hp=d34bdb3d0f85ef945ccd044a91f9ec71a1a9a7cf;hpb=af9fcde70e8e3889d5834599b0b8ca11e6af90a5;p=sliver-openvswitch.git diff --git a/debian/rules b/debian/rules index d34bdb3d0..b21c8dbf0 100755 --- a/debian/rules +++ b/debian/rules @@ -29,6 +29,12 @@ else CFLAGS += -O2 endif +# Old versions of dpkg-buildflags do not understand --export=configure. +# When dpkg-buildflags does not understand an option, it prints its full +# --help output on stdout, so we have to avoid that here. +buildflags := $(shell if dpkg-buildflags --export=configure >/dev/null 2>&1; \ + then dpkg-buildflags --export=configure; fi) + configure: configure-stamp configure-stamp: dh_testdir @@ -40,7 +46,7 @@ configure-stamp: test -e Makefile || \ ../configure --prefix=/usr --localstatedir=/var --enable-ssl \ --sysconfdir=/etc CFLAGS="$(CFLAGS)" \ - $(DATAPATH_CONFIGURE_OPTS)) + $(buildflags) $(DATAPATH_CONFIGURE_OPTS)) touch configure-stamp #Architecture