Package: apg Version: 2.2.3.dfsg.1-2 Severity: normal Tags: patch User: crossbu...@debian.org Usertags: cross
pwgen fails to cross-build because it uses the native compiler rather than the appropriate cross-compiler. cdbs tries to make this work by passing CC in the environment, but that doesn't quite work because apg's Makefile sets CC and that wins. However, make arguments > assignments in Makefile > environment, so we can work around this simply by passing CC=<host compiler> as a make argument, as in the following patch. * Support cross-building. diff -u apg-2.2.3.dfsg.1/debian/rules apg-2.2.3.dfsg.1/debian/rules --- apg-2.2.3.dfsg.1/debian/rules +++ apg-2.2.3.dfsg.1/debian/rules @@ -13,6 +13,8 @@ include /usr/share/cdbs/1/rules/dpatch.mk include /usr/share/cdbs/1/class/makefile.mk +DEB_MAKE_EXTRA_ARGS := $(if $(cdbs_crossbuild),CC="$(DEB_HOST_GNU_TYPE)-gcc") + cleanbuilddir/apg:: rm -f build-stamp configure-stamp php.tar.gz Thanks, -- Colin Watson [cjwat...@ubuntu.com] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org