* Stop forcing gcc-4.9 for building.
* Update to Policy 3.9.6.
* Update the Browser URL for our git repository.
+ * Use dpkg-buildflags at least for the host binaries.
-- Felix Zielcke <fzielcke@z-51.de> Mon, 17 Aug 2015 22:29:04 +0200
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_CFLAGS := -g -Wall -Wno-error=unused-result
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- HOST_CFLAGS += -O0
-else
- HOST_CFLAGS += -O2
-endif
+HOST_CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
+HOST_CFLAGS := -Wall -Wno-error=unused-result $(shell dpkg-buildflags --get CFLAGS)
+HOST_LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
unexport CFLAGS
+export HOST_CPPFLAGS
export HOST_CFLAGS
+export HOST_LDFLAGS
export TARGET_CPPFLAGS := -Wno-unused-but-set-variable
ifeq (,$(shell which qemu-system-i386 2>/dev/null))
with_check := yes
endif
-#CC := gcc-4.9
-
-confflags = PACKAGE_VERSION="$(deb_version)" PACKAGE_STRING="GRUB $(deb_version)" CC=$(CC) TARGET_CC=$(CC) --enable-grub-mkfont
+confflags = PACKAGE_VERSION="$(deb_version)" PACKAGE_STRING="GRUB $(deb_version)" --enable-grub-mkfont
substvars =
AUTOGEN_DEB_FILES = config templates preinst postinst postrm dirs install links maintscript