endif
MAKEFLAGS += $(PARALLEL)
+CFLAGS += -g
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
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
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
$(MAKE) -C _debian DESTDIR=$(CURDIR)/debian/tmp install
cp debian/openvswitch-switch.template debian/openvswitch-switch/usr/share/openvswitch/switch/default.template
dh_install -s
+ dh_link -s
# Must not depend on anything. This is to be called by
# binary-arch/binary-indep