[Request for review] fsm-lite
Hi,
fsm-lite currently FTCBFS because it passes -msse4.2 for
BUILD_ARCH=amd64. This fails while cross compiling since this option
would fundamentally be alien for host-arch (amd64 -> foo arch)
I've attempted to use to not pass this option while cross building.
I'm not very sure if simply replacing DEB_BUILD_ARCH by DEB_HOST_ARCH could be a better solution(I'm tempted to assume so ;-)), hence
any review is really appreciated
diff --git a/debian/rules b/debian/rules
index 2a5d310..9613c00 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,9 +6,11 @@ include /usr/share/dpkg/architecture.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
ifeq ($(DEB_BUILD_ARCH), amd64)
CPPFLAGS += -msse4.2
endif
+endif
%:
dh $@
Nilesh
Reply to: