Package: eject
Version: 2.1.5+deb1+cvs20081104-12
Severity: normal
Tags: patch
User: [email protected]
Usertags: cross

eject is very close to cross-building cleanly.  There's just one
mistake: the compiler is called directly in debian/rules, but when doing
so debian/rules also needs to take care to set the compiler
appropriately when cross-building.  (This isn't something that the
environment can do, in general - the methods for doing so are
package-specific.)

The following patch fixes this.

  * Set CC correctly if cross-building.

diff -u eject-2.1.5+deb1+cvs20081104/debian/rules 
eject-2.1.5+deb1+cvs20081104/debian/rules
--- eject-2.1.5+deb1+cvs20081104/debian/rules
+++ eject-2.1.5+deb1+cvs20081104/debian/rules
@@ -10,6 +10,10 @@
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
+
 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 ifeq ($(DEB_HOST_ARCH_CPU),m68k)
 CFLAGS += -Os

Thanks,

-- 
Colin Watson                                       [[email protected]]


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to