diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-04-16 08:43:41 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-04-16 11:19:39 +0300 |
commit | 84aea518f0dc9836350c47bff21780a5999f4968 (patch) | |
tree | 7f76970daa8e413a1ae40e80d6feb444a5803670 /solenv | |
parent | Try to propagate display size change to LO (diff) | |
download | core-84aea518f0dc9836350c47bff21780a5999f4968.tar.gz core-84aea518f0dc9836350c47bff21780a5999f4968.zip |
Turn on _GLIBCXX_FULLY_DYNAMIC_STRING, too, in a dbgutil build
Apparently Apple's build of GNU libstdc++ has been compiled with that,
which means that also code using it should be. At least when
_GLIBCXX_DEBUG is also defined.
See http://lists.apple.com/archives/cocoa-dev/2009/Sep/msg01199.html and
http://stackoverflow.com/questions/2234557/c-using-getline-prints-pointer-being-freed-was-not-allocated-in-xcode
Otherwise the mork unit test crashes, because it happens to use
std::string in a way that triggers the problem. But quite likely there
would be more problems elsewhere.
Change-Id: Ie0c4fdfa61764718f333ba81015ef764806178fb
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/macosx.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk index 5d94b4ad6568..efb0f052d9a3 100644 --- a/solenv/gbuild/platform/macosx.mk +++ b/solenv/gbuild/platform/macosx.mk @@ -77,11 +77,16 @@ gb_COMPILERDEFS += \ endif -# enable debug STL +# Enable debug libstdc++ ifeq ($(gb_ENABLE_DBGUTIL),$(true)) gb_COMPILERDEFS += \ -D_GLIBCXX_DEBUG \ +# See http://lists.apple.com/archives/cocoa-dev/2009/Sep/msg01199.html , +# http://stackoverflow.com/questions/2234557/c-using-getline-prints-pointer-being-freed-was-not-allocated-in-xcode +gb_COMPILERDEFS += \ + -D_GLIBCXX_FULLY_DYNAMIC_STRING \ + endif ifeq ($(HAVE_GCC_NO_LONG_DOUBLE),TRUE) |