Package: cron
Version: 3.0pl1-120
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu precise ubuntu-patch
Hi guys,
In Ubuntu, the attached patch was applied to add support for cross-building
cron. cron has a very simple build system, so it's a very simple patch; all
that's required to let cron cross-build is to tell the makefile where the
cross-compiler is.
Please consider including this patch in Debian as well.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
slanga...@ubuntu.com vor...@debian.org
=== modified file 'debian/changelog'
=== modified file 'debian/rules'
--- debian/rules 2011-10-20 07:57:06 +
+++ debian/rules 2012-04-02 07:11:15 +
@@ -8,6 +8,12 @@
# Set system type (Linux, HURD, etc.)
DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+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))
+export CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif
+
# Standard compiler flags
CFLAGS += -Wall -Wno-unused -Wno-comment