summaryrefslogtreecommitdiff
blob: 8fbb34980aa1fdb245c48c494d2617aeaf4b7815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
https://bugs.gentoo.org/show_bug.cgi?id=417401

The Prefix toolchain on OSX doesn't support -arch, even though using
gcc-apple.  This is not really a problem (FSF GCC doesn't understand
this flag either), because we never build FAT objects.  It is however a
problem when people forcibly add -arch to CFLAGS and LDFLAGS.  Leave it
to the toolchain such that we can also build 64-bits.  (Pro!)

Request for removing this when unnecessary:
http://code.google.com/p/gyp/issues/detail?id=260

--- build/gyp/pylib/gyp/xcode_emulation.py
+++ build/gyp/pylib/gyp/xcode_emulation.py
@@ -317,7 +317,6 @@
       # TODO: Supporting fat binaries will be annoying.
       self._WarnUnimplemented('ARCHS')
       archs = ['i386']
-    cflags.append('-arch ' + archs[0])
 
     if archs[0] in ('i386', 'x86_64'):
       if self._Test('GCC_ENABLE_SSE3_EXTENSIONS', 'YES', default='NO'):
@@ -435,7 +434,6 @@
       # TODO: Supporting fat binaries will be annoying.
       self._WarnUnimplemented('ARCHS')
       archs = ['i386']
-    ldflags.append('-arch ' + archs[0])
 
     # Xcode adds the product directory by default.
     ldflags.append('-L' + product_dir)