Ticket #37613: patch-buildutils-detect.py.diff
File patch-buildutils-detect.py.diff, 768 bytes (added by jdgleeson, 12 years ago) |
---|
-
buildutils/detect.py
old new 65 65 if sys.platform == 'darwin': 66 66 # use appropriate arch for compiler 67 67 if platform.architecture()[0]=='32bit': 68 cpreargs = ['-arch','i386'] 69 lpreargs = ['-arch', 'i386', '-undefined', 'dynamic_lookup'] 68 if platform.processor() == 'powerpc': 69 cpu = 'ppc' 70 else: 71 cpu = 'i386' 72 cpreargs = ['-arch', cpu] 73 lpreargs = ['-arch', cpu, '-undefined', 'dynamic_lookup'] 70 74 else: 71 75 # allow for missing UB arch, since it will still work: 72 76 lpreargs = ['-undefined', 'dynamic_lookup']