summaryrefslogtreecommitdiffstats
path: root/cppu/util
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2010-11-10 18:33:43 +0200
committerTor Lillqvist <tml@hemulen.(none)>2010-11-10 18:40:38 +0200
commit8e7f25848a027c46f433318e4cf24dc15c3446d1 (patch)
tree85ae52793836cd84e6bbfc4547a684a1842728f4 /cppu/util
parentFixed i#81780 for good, even on Macos X (diff)
downloadcore-8e7f25848a027c46f433318e4cf24dc15c3446d1.tar.gz
core-8e7f25848a027c46f433318e4cf24dc15c3446d1.zip
Add workaround to avoid crash when exiting LibreOffice
Reintroduce the horrible CPPU_LEAK_STATIC_DATA hack used in OOo 3.2.1, but only for Windows builds. No idea what causes the crash. See fdo#31494. Don't know if this hack has some bad consequences then, i#107490 seems to say so.
Diffstat (limited to 'cppu/util')
-rw-r--r--cppu/util/target.pmk9
1 files changed, 8 insertions, 1 deletions
diff --git a/cppu/util/target.pmk b/cppu/util/target.pmk
index 3befcb154753..70be64b8e3f4 100644
--- a/cppu/util/target.pmk
+++ b/cppu/util/target.pmk
@@ -45,9 +45,16 @@ CFLAGS += -O
.ELSE
-# msvc++: no inlining
.IF "$(COM)" == "MSC"
+# msvc++: no inlining
CFLAGS += -Ob0
+.IF "$(cppu_no_leak)" == ""
+.IF "$(bndchk)" == ""
+# msvc++: workaround for strange crash at exit: just don't do the
+# cleanup of types and whatnot...
+CFLAGS += -DCPPU_LEAK_STATIC_DATA
+.ENDIF
+.ENDIF
.ENDIF
.ENDIF