From 8ebf16749f0daf4ba32b2e2cf462dbeedd053d38 Mon Sep 17 00:00:00 2001 From: janwas Date: Wed, 7 Jun 2006 04:44:21 +0000 Subject: [PATCH] fix: don't use debug mode suffix on *nix This was SVN commit r3962. --- build/premake/extern_libs.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build/premake/extern_libs.lua b/build/premake/extern_libs.lua index d0f60b803e..ae8eaa48ef 100644 --- a/build/premake/extern_libs.lua +++ b/build/premake/extern_libs.lua @@ -157,10 +157,17 @@ local function add_extern_lib(extern_lib, def) end local suffix = "d" + -- library is overriding default suffix (typically "" to indicate there is none) if def["dbg_suffix"] then suffix = def["dbg_suffix"] end - + -- non-Windows doesn't have the distinction of debug vs. release libraries + -- (to be more specific, they do, but the two are binary compatible; + -- usually only one type - debug or release - is installed at a time). + if OS ~= "windows" then + suffix = "" + end + for i,name in names do tinsert(package.config["Debug" ].links, name .. suffix) -- 'Testing' config uses 'Debug' DLLs