OS X build fix (fixes #265)

This was SVN commit r7078.
This commit is contained in:
Ykkrosh 2009-08-07 07:58:32 +00:00
parent 65d3bd642c
commit 935efedacf

View File

@ -129,6 +129,11 @@ extern_lib_defs = {
else else
tinsert(package.buildoptions, "`pkg-config libxml-2.0 --cflags`") tinsert(package.buildoptions, "`pkg-config libxml-2.0 --cflags`")
tinsert(package.gnu_external, "`pkg-config libxml-2.0 --libs`") tinsert(package.gnu_external, "`pkg-config libxml-2.0 --libs`")
-- libxml2 needs _REENTRANT or __MT__ for thread support;
-- OS X doesn't get either set by default, so do it manually
if OS == "osx" then
tinsert(package.defines, "_REENTRANT")
end
end end
end, end,
}, },