Prevent pkg-config from using native packages during cross-compile.

This commit is contained in:
Sergey Popov 2009-07-11 14:06:53 +00:00
parent c248cd7366
commit 7c7b8684a2

View file

@ -1,4 +1,5 @@
# vi: syntax=python:et:ts=4
import os
def setup_cross_compile(env):
if "mingw" in env["host"]:
@ -23,3 +24,6 @@ def setup_cross_compile(env):
env.PrependUnique(CPPPATH="$prefix/include", LIBPATH="$prefix/lib")
if not env["sdldir"] and env["PLATFORM"] == "win32":
env["sdldir"] = "$prefix"
os.environ["PKG_CONFIG_LIBDIR"] = ''
env["ENV"]["PKG_CONFIG_LIBDIR"] = ''