kicad/patches/wxpython-3.0.0_macosx_multi...

26 lines
804 B
Diff
Raw Normal View History

=== modified file 'wxPython/config.py'
--- wxPython/config.py 2014-02-08 12:23:31 +0000
+++ wxPython/config.py 2014-02-08 13:58:07 +0000
@@ -22,6 +22,7 @@
import sys, os, glob, fnmatch, tempfile
import subprocess
+import re
EGGing = 'bdist_egg' in sys.argv or 'egg_info' in sys.argv
if not EGGing:
@@ -1059,10 +1060,8 @@
libs = ['stdc++']
NO_SCRIPTS = 1
if ARCH != "":
- cflags.append("-arch")
- cflags.append(ARCH)
- lflags.append("-arch")
- lflags.append(ARCH)
+ cflags.append("-arch " + re.sub(","," -arch ",ARCH))
+ #lflags.append("-arch " + re.sub(","," -arch ",ARCH))
if not os.environ.get('CC') or not os.environ.get('CXX'):
os.environ["CXX"] = getWxConfigValue('--cxx')