X-Git-Url: https://git.tokkee.org/?p=pkg-ncmpc.git;a=blobdiff_plain;f=debian%2Frules;fp=debian%2Frules;h=042e001a95056c29fe03b619e3bc9ac79d91178e;hp=cf18017962b5c5906206090228dd2f5d964bce8c;hb=99e33724f588f462d16a26f20af2d80a8cf4af18;hpb=f7d9e1cea0c03024abe01792550178d60f099e59 diff --git a/debian/rules b/debian/rules index cf18017..042e001 100755 --- a/debian/rules +++ b/debian/rules @@ -11,13 +11,10 @@ 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 - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif +CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) +CFLAGS = $(shell dpkg-buildflags --get CFLAGS) +CFLAGS += -Wall +LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) CHECK = check @@ -48,7 +45,9 @@ config.status: configure --enable-outputs-screen \ --enable-documentation \ --with-ncursesw \ - CFLAGS="$(CFLAGS)" + CPPFLAGS="$(CPPFLAGS)" \ + CFLAGS="$(CFLAGS)" \ + LDFLAGS="$(LDFLAGS)" build: build-arch build-indep build-indep: