Reduce the CFLAGS -O3 default on Ubuntu ppc64el to -O2; it introduces various -Werror failures and isn't worth it here.

This commit is contained in:
Colin Watson 2015-09-05 19:09:01 +01:00
parent 9adc23ecac
commit 0b29b4e03c
2 changed files with 10 additions and 1 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
grub2 (2.02~beta2-28) UNRELEASED; urgency=medium
* Reduce the CFLAGS -O3 default on Ubuntu ppc64el to -O2; it introduces
various -Werror failures and isn't worth it here.
-- Colin Watson <cjwatson@debian.org> Sat, 05 Sep 2015 19:08:28 +0100
grub2 (2.02~beta2-27) unstable; urgency=medium
[ Felix Zielcke ]

4
debian/rules vendored
View File

@ -11,7 +11,9 @@ DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null)
HOST_CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
HOST_CFLAGS := -Wall -Wno-error=unused-result $(shell dpkg-buildflags --get CFLAGS)
# -O3 (default on Ubuntu ppc64el) introduces various -Werror failures, and
# isn't worth it here.
HOST_CFLAGS := -Wall -Wno-error=unused-result $(shell dpkg-buildflags --get CFLAGS | perl -pe 's/-O3\b/-O2/')
HOST_LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
unexport CFLAGS