From bafc8d0cfaab3d8d8d8a4765d1ae7dd1cc59a0b8 Mon Sep 17 00:00:00 2001 From: janwas Date: Tue, 13 May 2008 19:34:16 +0000 Subject: [PATCH] lib code requires a macro to be set, otherwise it thinks it's being used in a DLL (rebuild workspace required) This was SVN commit r5953. --- build/premake/premake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/premake/premake.lua b/build/premake/premake.lua index 071fda0f8e..a649821fae 100755 --- a/build/premake/premake.lua +++ b/build/premake/premake.lua @@ -87,6 +87,10 @@ function package_set_build_flags() package.config["Release"].buildflags = { "no-runtime-checks", "optimize-speed" } package.config["Release"].defines = { "NDEBUG" } + -- required for the lowlevel library. must be set from all packages that use it, otherwise it assumes it is + -- being used as a DLL (which is currently not the case in 0ad) + tinsert(package.defines, "LIB_STATIC_LINK") + -- various platform-specific build flags if OS == "windows" then