tags 667979 patch
thanks
> Moreless we would need an migration path, like patching tokyocabinet to
> automatically detect endianess and act accordingly (whatever this is;
> for sure this is not a trivial thing )
Here is what I do in tifffile:
DEB_HOST_ARCH_ENDIAN:=$(shell dpkg-architecture -qDEB_HOST_ARCH_ENDIAN)
ifeq ($(DEB_HOST_ARCH_ENDIAN),big)
export CFLAGS=-DMSB=0
endif
So I guess you should do:
DEB_HOST_ARCH_ENDIAN:=$(shell dpkg-architecture -qDEB_HOST_ARCH_ENDIAN)
ifeq ($(DEB_HOST_ARCH_ENDIAN),big)
CUSTOMSWAB=--enable-swab
endif
[...]
override_dh_auto_configure:
dh_auto_configure -- \
$(if $(findstring $(DEB_BUILD_ARCH),s390 s390x),--disable-pthread) \
--enable-devel --enable-off64 $(CUSTOMSWAB)
HTH
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]