Package: acpica-unix Version: 20100528-3 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu raring ubuntu-patch
Hi Mattia, In Ubuntu, I've applied a patch to acpica-unix's packaging to add support for cross-building, and use of dpkg-buildflags for hardening flags. Please consider applying the attached patch to the Debian package as well. Thanks, -- 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 Developer http://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
=== modified file 'debian/rules' --- debian/rules 2010-07-02 21:43:45 +0000 +++ debian/rules 2012-12-18 06:34:00 +0000 @@ -9,12 +9,15 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -CFLAGS = -Wall -g - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 +CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -Wall -fno-strict-aliasing + +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)) + CC = $(DEB_HOST_GNU_TYPE)-gcc else - CFLAGS += -O2 -fno-strict-aliasing + CC = gcc endif configure: configure-stamp @@ -32,7 +35,7 @@ # Commands to compile the package. cd compiler && \ - $(MAKE) CFLAGS="$(CFLAGS)" && \ + $(MAKE) CFLAGS="$(CFLAGS)" CC=$(CC) && \ cd .. touch build-stamp