From 1e7b36d54bb66d0d4668e16e424e76e4100470a1 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Sun, 21 Mar 2010 19:36:35 +0000 Subject: [PATCH] # OS X build fix. Use sdl-config instead of pkg-config. This was SVN commit r7387. --- build/premake/extern_libs.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/premake/extern_libs.lua b/build/premake/extern_libs.lua index 8c6263c45e..aec8019421 100644 --- a/build/premake/extern_libs.lua +++ b/build/premake/extern_libs.lua @@ -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 },