Fix FTCBFS: Pass --cross-prefix to ./configure
authorReinhard Tartler <siretart@tauware.de>
Sat, 14 Nov 2020 02:32:48 +0000 (21:32 -0500)
committerReinhard Tartler <siretart@tauware.de>
Sat, 14 Nov 2020 02:34:18 +0000 (21:34 -0500)
Closes: #945200
debian/rules

index 58e060bb183c465ef275182ac09e564659048de2..b7272dc2a18e6b721d082f3c090a7ca21f18f6e3 100755 (executable)
@@ -8,6 +8,10 @@ ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
 DEB_CONFIGURE_EXTRA_FLAGS = --disable-opt
 endif
 
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+DEB_EXTRA_CONFIGURE_FLAGS += --cross-prefix=${DEB_HOST_GNU_TYPE}-
+endif
+
 %:
        dh $@