# OS X build fix.

Use sdl-config instead of pkg-config.

This was SVN commit r7387.
This commit is contained in:
Ykkrosh
2010-03-21 19:36:35 +00:00
parent 5118d6ab32
commit 1e7b36d54b
+4 -1
View File
@@ -165,7 +165,10 @@ extern_lib_defs = {
add_func = function()
add_extern_lib_paths("sdl")
if OS ~= "windows" then
pkgconfig("sdl")
-- "pkg-config sdl --libs" appears to include both static and dynamic libs
-- when on MacPorts, which is bad, so use sdl-config instead
tinsert(package.buildoptions, "`sdl-config --cflags`")
tinsert(package.gnu_external, "`sdl-config --libs`")
end
end
},