mail[Wesnoth-commits] r36801 - /trunk/scons/cross_compile.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by loonycyborg on July 11, 2009 - 16:06:
Author: loonycyborg
Date: Sat Jul 11 16:06:53 2009
New Revision: 36801

URL: http://svn.gna.org/viewcvs/wesnoth?rev=36801&view=rev
Log:
Prevent pkg-config from using native packages during cross-compile.

Modified:
    trunk/scons/cross_compile.py

Modified: trunk/scons/cross_compile.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/scons/cross_compile.py?rev=36801&r1=36800&r2=36801&view=diff
==============================================================================
--- trunk/scons/cross_compile.py (original)
+++ trunk/scons/cross_compile.py Sat Jul 11 16:06:53 2009
@@ -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 @@
         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"] = ''




Related Messages


Powered by MHonArc, Updated Sat Jul 11 16:20:34 2009