X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fpackage%2Fdebian%2Frules;h=1598d6fe896b306138bfbb253a2ef33a274a3c79;hp=bed7a82a76cc7c8f090efe83436be64857d04476;hb=71244b7927a8918c0b09a8eb13b017ef0ebb6de8;hpb=a2016785091d241ca289fbac5b40bfc7f0432737 diff --git a/test/package/debian/rules b/test/package/debian/rules index bed7a82a..1598d6fe 100755 --- a/test/package/debian/rules +++ b/test/package/debian/rules @@ -18,7 +18,9 @@ PACKAGES.arch = $(NCURSES_PKG) $(NCURSEST_PKG) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -CFLAGS = +CFLAGS = $(shell dpkg-buildflags --get CFLAGS) +CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) +LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 @@ -32,7 +34,9 @@ endif verbose = # -v configure = \ - CFLAGS="$(CFLAGS)" ../../configure \ + CFLAGS="$(CFLAGS)" \ + CPPFLAGS="$(CPPFLAGS)" \ + LDFLAGS="$(LDFLAGS)" ../../configure \ --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \