debian: Fix cross build.
authorEd Swierk <eswierk@skyportsystems.com>
Sun, 24 Aug 2014 17:37:29 +0000 (10:37 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 26 Aug 2014 18:45:15 +0000 (11:45 -0700)
Cross-building openvswitch with debuild -aARCH (or equivalent) fails
because the target architecture is not getting passed to configure.
Thus binaries like ovs-appctl get built using the build host
architecture.

Signed-off-by: Ed Swierk <eswierk@skyportsystems.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
debian/rules

index 799bf2e..d1932a1 100755 (executable)
@@ -45,7 +45,7 @@ configure-stamp:
        cd _debian && ( \
                test -e Makefile || \
                ../configure --prefix=/usr --localstatedir=/var --enable-ssl \
-                       --sysconfdir=/etc CFLAGS="$(CFLAGS)" \
+                       --sysconfdir=/etc --host=$(DEB_HOST_GNU_TYPE) CFLAGS="$(CFLAGS)" \
                        $(buildflags) $(DATAPATH_CONFIGURE_OPTS))
        touch configure-stamp