summaryrefslogtreecommitdiff
path: root/cppunit
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-07-09 13:52:28 +0300
committerTor Lillqvist <tml@iki.fi>2011-07-09 13:52:28 +0300
commitc9722674d965c43119b45c7b3f227d3131c3cce3 (patch)
tree28cb291e957db1e590c2b58c46001cb88a2c5cf1 /cppunit
parentee81fde4477409eaf8062434534fbdf404a33cc9 (diff)
Build with -g if we want to be able to debug
Diffstat (limited to 'cppunit')
-rw-r--r--cppunit/makefile.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/cppunit/makefile.mk b/cppunit/makefile.mk
index 54c55c25469d..4719a8200e58 100644
--- a/cppunit/makefile.mk
+++ b/cppunit/makefile.mk
@@ -118,11 +118,16 @@ MY_LIBS = -lm
.END
CONFIGURE_ACTION = ./configure
+
+.IF "$(debug)"!=""
+DEBUGFLAG=-g
+.ENDIF
+
CONFIGURE_FLAGS = --prefix=$(shell cd $(PACKAGE_DIR) && \
pwd $(PWDFLAGS))/$(TARFILE_ROOTDIR)/ooo-install \
--disable-dependency-tracking --disable-static --disable-doxygen \
--disable-html-docs --disable-latex-docs CC='$(CC)' CXX='$(CXX)' \
- CXXFLAGS='$(EXTRA_CFLAGS)' \
+ CXXFLAGS='$(EXTRA_CFLAGS) $(DEBUGFLAG)' \
LDFLAGS='$(LDFLAGS)' \
LIBS='$(MY_LIBS)'