added DPKG_BUILDFLAGS option

This commit is contained in:
Alexander Deynichenko 2013-02-26 06:24:16 +04:00
parent 972b017b2b
commit cf2ecbb62b

6
debian/rules vendored
View File

@ -2,12 +2,12 @@
include /usr/share/quilt/quilt.make
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CFLAGS = -Wall
LDFLAGS = -Wl,--as-needed
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else