summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7723b5b)
raw | patch | inline | side by side (parent: 7723b5b)
author | Sebastian Harl <sh@tokkee.org> | |
Sat, 23 Nov 2013 19:14:56 +0000 (20:14 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sat, 23 Nov 2013 19:14:56 +0000 (20:14 +0100) |
debian/changelog | patch | blob | history | |
debian/rules | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
index 78d469b63a3130489c5cd1c36da3a7c8b15e97d5..292c026fee37c2a15a8088dae2d19977c587b72a 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
- Updated for new upstream version.
* debian/rules:
- Split build target into build-arch and build-indep.
+ - Use dpkg-buildflags to get CPPFLAGS and CFLAGS.
* debian/control:
- Updated standards-version to 3.9.4.
diff --git a/debian/rules b/debian/rules
index 8c82591e4c6dea729e7dba8aff0b8db7311d83c3..4be60df5141411f879f9c1da16bd462a5781a552 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-CFLAGS = -Wall -g
+CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
+CFLAGS += -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
- CFLAGS="$(CFLAGS)"
+ CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)"
build: build-arch build-indep