From 5474e2625fd082fec23bb42c622969b24360299c Mon Sep 17 00:00:00 2001 From: Nils Kneuper Date: Wed, 24 Dec 2008 10:48:57 +0000 Subject: [PATCH] make the new memory allocator... ...(or whatever else caused the game to freeze at showing the mainscreen) work with cmake, too in all other build systems this define was set due to sdl-config, might require an explicit addition, just to be sure --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index acb76ba5cc6..7d530ce29f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,6 +107,9 @@ if(X11_FOUND) add_definitions(-D_X11) endif(X11_FOUND) +# needed to have the new memory allocator work!!! +add_definitions(-D_GNU_SOURCE=1) + add_definitions(-DHAS_RELATIVE_LOCALEDIR) add_definitions(-DLOCALEDIR='\"${LOCALEDIR}\"') set(LOCALE_INSTALL ${DATADIR}/${LOCALEDIR})