Prevent pkg-config from using native packages during cross-compile.
This commit is contained in:
parent
c248cd7366
commit
7c7b8684a2
1 changed files with 4 additions and 0 deletions
|
@ -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"] = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue