[Build-common-hackers] Bug#280466: debug option for DEB_BUILD_OPTIONS

Sebastien Bacher Sebastien Bacher <seb128@debian.org>, 280466@bugs.debian.org
Tue, 09 Nov 2004 18:10:32 +0100


Package: cdbs
Severity: wishlist

Hi,

It would be nice to have a "debug" parameters to build a "debug package"


Trivial patch to do this:

--- 1/class/langcore.mk.in.orig 2004-11-09 18:00:33.883495456 +0100
+++ 1/class/langcore.mk.in      2004-11-09 18:02:06.011489872 +0100
@@ -35,4 +35,9 @@
 CFLAGS += $(DEB_OPT_FLAG)
 CXXFLAGS += $(DEB_OPT_FLAG)

+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+CFLAGS = -ggdb -O0 -Wall
+CXXFLAGS = -ggdb -O0 -Wall
+endif
+
 endif