User: [EMAIL PROTECTED] Usertags: crossbuilt It's best to not pass --host unless cross building and to pass --build for all builds (see the autotools-dev recommendation).
(Adding this bug to the long term mass bug filing for cross build support. See http://lists.debian.org/debian-devel/2007/11/msg00116.html ) This is the patch that Emdebian is currently using: --- popt-1.10.debian/debian/rules +++ popt-1.10.emdebian/debian/rules @@ -6,6 +6,12 @@ #export DH_VERBOSE=1 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= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif # shared library versions, option 1 source = $(shell grep "^Source: " debian/control|head -1|sed 's/Source: \(.*\)/\1/g') @@ -49,8 +55,7 @@ ln mkinstalldirs $(objdir) # Add here commands to configure the package. cd $(objdir) && \ - ../configure --prefix=/usr --mandir=/usr/share/man --enable-shared - # --host=$(DEB_HOST_GNU_TYPE) + ../configure --prefix=/usr --mandir=/usr/share/man --enable-shared $(CROSS) touch $@ configure-udeb-stamp: -- Neil Williams ============= http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/
pgplJ8ielqW7Z.pgp
Description: PGP signature

