From b0dbd0eef17b72417324910526128e76d1cb3cee Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 17 Jun 2009 19:36:46 +0200 Subject: [PATCH] rules: Pass appropriate CFLAGS and CXXFLAGS to configure. --- debian/changelog | 4 +++- debian/rules | 14 +++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index ddcbc13..149b722 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,8 +5,10 @@ pfstmo (1.4-1) unstable; urgency=low - Added libgsl0-dev to the build-dependencies - this is required for the new mantiuk08 operator. - Updated standards-version to 3.8.2 - no changes. + * debian/rules: + - Pass appropriate CFLAGS and CXXFLAGS to configure. - -- Sebastian Harl Wed, 17 Jun 2009 19:07:38 +0200 + -- Sebastian Harl Wed, 17 Jun 2009 19:36:23 +0200 pfstmo (1.1-1) unstable; urgency=low diff --git a/debian/rules b/debian/rules index bc8c64f..c8625e7 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,17 @@ 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 +CXXFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 + CXXFLAGS += -O0 +else + CFLAGS += -O2 + CXXFLAGS += -O2 +endif + config.status: configure dh_testdir @@ -23,7 +34,8 @@ config.status: configure ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr --mandir=\$${prefix}/share/man \ - --infodir=\$${prefix}/share/info + --infodir=\$${prefix}/share/info \ + CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" build: build-stamp -- 2.30.2