1
0
forked from 0ad/0ad

fix: don't use debug mode suffix on *nix

This was SVN commit r3962.
This commit is contained in:
janwas 2006-06-07 04:44:21 +00:00
parent ec6ed39d0d
commit 8ebf16749f

View File

@ -157,9 +157,16 @@ local function add_extern_lib(extern_lib, def)
end end
local suffix = "d" local suffix = "d"
-- library is overriding default suffix (typically "" to indicate there is none)
if def["dbg_suffix"] then if def["dbg_suffix"] then
suffix = def["dbg_suffix"] suffix = def["dbg_suffix"]
end 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 for i,name in names do
tinsert(package.config["Debug" ].links, name .. suffix) tinsert(package.config["Debug" ].links, name .. suffix)