This should allow to successfully run the package build without
preliminary steps for ovs subtree preparation. It also guarantees that
same build flags, including hardening, are applied to ovs library.

Signed-off-by: Ihar Hrachyshka <[email protected]>
---
 debian/rules | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index b25a0b48e..6cc4002e0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,7 +30,11 @@ override_dh_autoreconf:
        dh_autoreconf $(DH_AS_NEEDED)
 
 override_dh_auto_configure:
-       dh_auto_configure -- --enable-ssl --enable-shared 
--with-ovs-source=${OVSDIR} $(EXTRA_CONFIGURE_OPTS)
+       cd ovs && ./boot.sh && ./configure \
+               CFLAGS="-fPIC $(shell dpkg-buildflags --get CFLAGS)" \
+               LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" \
+               && $(MAKE)
+       dh_auto_configure -- --enable-ssl --enable-shared 
--with-ovs-source=$(CURDIR)/ovs $(EXTRA_CONFIGURE_OPTS)
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-- 
2.52.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to