Code

rules: Pass appropriate CFLAGS and CXXFLAGS to configure.
authorSebastian Harl <sh@tokkee.org>
Wed, 17 Jun 2009 17:36:46 +0000 (19:36 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 17 Jun 2009 17:36:46 +0000 (19:36 +0200)
debian/changelog
debian/rules

index ddcbc134ecd105ce8324ba7347fbb0cecea59f66..149b7228883e71699756c1fb9a1a700a54b6bdb1 100644 (file)
@@ -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 <tokkee@debian.org>  Wed, 17 Jun 2009 19:07:38 +0200
+ -- Sebastian Harl <tokkee@debian.org>  Wed, 17 Jun 2009 19:36:23 +0200
 
 pfstmo (1.1-1) unstable; urgency=low
 
index bc8c64f63bdcfa94aa3c774571d9629f89a19607..c8625e78510285c23e2e0539f2c37316d54cb398 100755 (executable)
 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