[Libreoffice-commits] .: cppunit/makefile.mk

Tor Lillqvist tml at kemper.freedesktop.org
Sat Jul 9 03:52:43 PDT 2011


 cppunit/makefile.mk |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 4284d6b3fc9b015ffe45ddb56744a56666fb31e4
Author: Tor Lillqvist <tml at iki.fi>
Date:   Sat Jul 9 13:52:28 2011 +0300

    Build with -g if we want to be able to debug

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)'
 


More information about the Libreoffice-commits mailing list