summaryrefslogtreecommitdiff
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
commit4284d6b3fc9b015ffe45ddb56744a56666fb31e4 (patch)
treeef4af54792b59b4cc7b9a2cdf0e10bf02402f857
parent17eb0edec19508f59ffed84d7b52de6379ab08d5 (diff)
Build with -g if we want to be able to debug
-rw-r--r--cppunit/makefile.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/cppunit/makefile.mk b/cppunit/makefile.mk
index 54c55c2..4719a82 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)'