diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-11-07 16:11:01 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-11-07 16:45:12 +0200 |
commit | fd58e9d5a969efa9ef983998d4a40f301c7ff695 (patch) | |
tree | c7037e3990a81e4b6d04df903535fe10711086a4 /liblangtag | |
parent | 5cc34dc91211b6173139d1a1a76c494c4a1f9a75 (diff) |
Use -Zi when debug info wanted with MSVC
It really sucks to have to propagate debugging options to the compiler
in an ad-hoc fashion like this. But then each dmake-based external
library module really is an individual, especially the ways they are
built with MSVC.
Liblangtag is especially exotic, as it uses autotools and libtool(!)
also for a MSVC build. Which works, but just barely, almost by
accident. For instance, it ends up using the Cygwin ar and ranlib on
MSVC-produced object files. Which luckily seems to work at least with
MSVC2008.
Change-Id: I1c5244b2a599775c04ae8a003e4a096a0a11648f
Diffstat (limited to 'liblangtag')
-rw-r--r-- | liblangtag/makefile.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/liblangtag/makefile.mk b/liblangtag/makefile.mk index c9b72a20ff32..bd813fadc3b3 100644 --- a/liblangtag/makefile.mk +++ b/liblangtag/makefile.mk @@ -74,6 +74,9 @@ CONFIGURE_FLAGS+= LIBXML2_CFLAGS='-I$(SOLARINCDIR)/external' .IF "$(GUI)"=="WNT" && "$(COM)"!="GCC" CONFIGURE_FLAGS+= LIBXML2_LIBS='$(SOLARLIBDIR)/libxml2.lib' CC:=$(CC) -MD +.IF "$(debug)"=="TRUE" +CC:=$(CC) -Zi +.ENDIF .ELSE CONFIGURE_FLAGS+= LIBXML2_LIBS='-L$(SOLARLIBDIR) -lxml2' .ENDIF |