diff -u libcap2-2.16/debian/changelog libcap2-2.16/debian/changelog --- libcap2-2.16/debian/changelog +++ libcap2-2.16/debian/changelog @@ -1,3 +1,9 @@ +libcap2 (1:2.16-5ubuntu2~cross1) karmic; urgency=low + + * Set CC correctly for cross-compilation. + + -- Colin Watson Thu, 07 Jan 2010 13:41:14 +0000 + libcap2 (1:2.16-5ubuntu1) karmic; urgency=low * fix-capability-headers.diff: is sanitised properly diff -u libcap2-2.16/debian/rules libcap2-2.16/debian/rules --- libcap2-2.16/debian/rules +++ libcap2-2.16/debian/rules @@ -4,6 +4,13 @@ include /usr/share/cdbs/1/class/makefile.mk include /usr/share/cdbs/1/rules/patchsys-quilt.mk +ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) +CC := gcc +else +CC := $(DEB_HOST_GNU_TYPE)-gcc +endif + +DEB_MAKE_EXTRA_ARGS += CC=$(CC) BUILD_CC=gcc DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(DEB_DESTDIR) lib=lib DEB_INSTALL_DOCS_ALL := debian/README.Debian DEB_DH_MAKESHLIBS_ARGS := -V 'libcap2 (>= 2.10)'