Package: libopenobex Version: 1.3-3 Severity: wishlist Tags: patch User: [EMAIL PROTECTED] Usertags: crossbuilt
In line with the other cross-building support bugs: http://lists.debian.org/debian-devel/2007/11/msg00116.html This patch is necessary to allow libopenobex to cross-build in Debian, including following the recommendation in autotools-dev to only supply --host when cross building and use --build for all builds. The cache file is handled externally. Thanks. *** ../crossbuild.diff --- libopenobex-1.3.debian/debian/rules +++ libopenobex-1.3.emdebian/debian/rules @@ -14,7 +14,14 @@ # from having to guess our platform (since we know it already) 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 +confflags= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) \ + --cache-file=$(DEB_HOST_GNU_TYPE).cache +else +confflags= --build $(DEB_BUILD_GNU_TYPE) +CROSS= +endif CFLAGS = -Wall -g @@ -39,10 +46,9 @@ dh_testdir autoreconf #CFLAGS="$(CFLAGS) -Wl,-z,defs" \ - ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ - --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \ + ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \ --with-usb=/usr \ - --enable-apps + --enable-apps $(confflags) build: build-stamp build-stamp: config.status -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
signature.asc
Description: Digital signature