Package: libsigc++-2.0
Version: 2.0.17-2
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 libsigc++-2.0 to cross-build in Debian,
following recommendations in autotools-dev. (Feel free to omit the
comment.)

Thanks.

*** ../crossbuild.diff
--- libsigc++-2.0-2.0.17.debian/debian/rules 
+++ libsigc++-2.0-2.0.17.emdebian/debian/rules 
@@ -11,6 +11,16 @@
 # variable, the file debian/libsigc++-2.0-$(SONAME).$(x) will be
 # created from debian/libsigc++-2.0.soname.$(x) file.
 SONAME_SPECIFIC_EXTS=install
+
+# These are used for cross-compiling and for saving the configure script
+# 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= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
 
 b := $(shell pwd)/debian/tmp
 
@@ -65,7 +75,8 @@
        #for x in debian/*.patch; do patch --dry-run -fp1 < $$x > /dev/null && \
        #  patch -fp1 < $$x; done
        test -d builddir || mkdir builddir
-       cd builddir && ../configure --prefix=/usr
+       cd builddir && ../configure --prefix=/usr $(CROSS)
+
        touch config-stamp
 
 install: install-stamp


-- 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

Attachment: signature.asc
Description: Digital signature

Reply via email to