debian: Apply hardening options to build.
[sliver-openvswitch.git] / debian / rules
index 51a2e51..1ee7048 100755 (executable)
@@ -22,6 +22,7 @@ PARALLEL =
 endif
 MAKEFLAGS += $(PARALLEL)
 
+CFLAGS += -g
 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
 CFLAGS += -O0
 else
@@ -39,6 +40,7 @@ configure-stamp:
                test -e Makefile || \
                ../configure --prefix=/usr --localstatedir=/var --enable-ssl \
                        --sysconfdir=/etc CFLAGS="$(CFLAGS)" \
+                       $(shell dpkg-buildflags --export=configure) \
                        $(DATAPATH_CONFIGURE_OPTS))
        touch configure-stamp