diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 17:06:28 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 17:06:28 +0000 |
commit | bab7c2cbbac7dc059ad554c0670e0b8bbd8925a0 (patch) | |
tree | beecc9a2fdfb213d9739cdb3a2618d82e484960f /debian/rules | |
parent | 8262bcd074c75183827605f29af99236f53b701c (diff) |
* Support DEB_BUILD_OPTIONS=noopt in debian/rules
Author: mdz
Date: 2004-04-30 03:56:33 GMT
* Support DEB_BUILD_OPTIONS=noopt in debian/rules
(Closes: #244293)
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index 809e26972..773b46087 100755 --- a/debian/rules +++ b/debian/rules @@ -2,7 +2,7 @@ # Made with the aid of dh_make, by Craig Small # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. # Some lines taken from debmake, by Christoph Lameter. -# $Id: rules,v 1.63 2004/02/27 00:51:25 mdz Exp $ +# $Id: rules,v 1.64 2004/04/30 03:56:33 mdz Exp $ # LD_LIBRARY_PATH=pwd/debian/apt/usr/lib dh_shlibdeps -papt # dpkg: /home/jgg/work/apt2/debian/apt/usr/lib/libapt-pkg.so.2.9 not found. @@ -27,6 +27,12 @@ endif # See below -include build/environment.mak +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + export CXXFLAGS = -O0 -g +else + export CXXFLAGS = -O2 -g +endif + # Default rule build: @@ -99,7 +105,7 @@ build/configure-stamp: configure dh_testdir -mkdir build cp COPYING debian/copyright - cd build && ../configure $(confflags) + cd build && CXXFLAGS="$(confcxxflags)" ../configure $(confflags) touch $@ build/build-stamp: build/configure-stamp |