Not sure how to patch this one, but packages that do not
use ./configure also need to have cross build support. Typically,
Emdebian recommends:

DEB_HOST_GNU_TYPE  ?=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?=$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc CXX=$(DEB_HOST_GNU_TYPE)-g++
else
CROSS=
endif

Then, for each $(MAKE) ... line, convert to:
$(MAKE) $(CROSS) ...

http://wiki.debian.org/EmdebianGuide

That change may need some wider changes in dh_make.

Note that in any package that needs to use CC_FOR_BUILD or otherwise
build internal tools using the native compiler, $(CROSS) should be
omitted for that directory. These packages are unusual - and some
handle CC_FOR_BUILD internally - but the situation may need some comment
in the dh_make manpage. Other packages also need to add CXX=
$(DEB_HOST_GNU_TYPE)-g++ to the $(CROSS) variable if they use C ++ or
combine C ++ code with C code, hence the addition above.

Feel free to link to the Emdebian wiki pages from the dh_make manpage
or get back to me (or the debian-embedded m-l) for any other cross
building queries.

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpeMM2VOvE2y.pgp
Description: PGP signature

Reply via email to