git.iko.soy/typeable/nixpkgs
on master help sign in
gyp: fix cflags on darwin
17898cfMichael Phillips
pkgs/development/python-modules/gyp/no-darwin-cflags.patch+10−10
@@ -1,8 +1,8 @@
1Index: gyp/pylib/gyp/xcode_emulation.py
1Index: gyp/pylib/gyp/xcode_emulation.py
2===================================================================
2===================================================================
3−--- gyp/pylib/gyp/xcode_emulation.py (revision 1635)
3+--- gyp/pylib/gyp/xcode_emulation.py
4−+++ gyp/pylib/gyp/xcode_emulation.py (working copy)
4++++ gyp/pylib/gyp/xcode_emulation.py
5−@@ -280,9 +280,6 @@
5+@@ -483,9 +483,6 @@
6 if self._Test('GCC_CHAR_IS_UNSIGNED_CHAR', 'YES', default='NO'):
6 if self._Test('GCC_CHAR_IS_UNSIGNED_CHAR', 'YES', default='NO'):
7 cflags.append('-funsigned-char')
7 cflags.append('-funsigned-char')
8
8
@@ -12,7 +12,7 @@ Index: gyp/pylib/gyp/xcode_emulation.py
12 if 'GCC_DYNAMIC_NO_PIC' in self._Settings():
12 if 'GCC_DYNAMIC_NO_PIC' in self._Settings():
13 if self._Settings()['GCC_DYNAMIC_NO_PIC'] == 'YES':
13 if self._Settings()['GCC_DYNAMIC_NO_PIC'] == 'YES':
14 cflags.append('-mdynamic-no-pic')
14 cflags.append('-mdynamic-no-pic')
15−@@ -292,9 +289,6 @@
15+@@ -495,9 +492,6 @@
16 # mdynamic-no-pic by default for executable and possibly static lib
16 # mdynamic-no-pic by default for executable and possibly static lib
17 # according to mento
17 # according to mento
18
18
@@ -22,7 +22,7 @@ Index: gyp/pylib/gyp/xcode_emulation.py
22 self._Appendf(cflags, 'GCC_OPTIMIZATION_LEVEL', '-O%s', default='s')
22 self._Appendf(cflags, 'GCC_OPTIMIZATION_LEVEL', '-O%s', default='s')
23
23
24 if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='YES'):
24 if self._Test('GCC_GENERATE_DEBUGGING_SYMBOLS', 'YES', default='YES'):
25−@@ -311,12 +305,6 @@
25+@@ -519,12 +513,6 @@
26 if self._Test('GCC_SYMBOLS_PRIVATE_EXTERN', 'YES', default='NO'):
26 if self._Test('GCC_SYMBOLS_PRIVATE_EXTERN', 'YES', default='NO'):
27 cflags.append('-fvisibility=hidden')
27 cflags.append('-fvisibility=hidden')
28
28
@@ -32,10 +32,10 @@ Index: gyp/pylib/gyp/xcode_emulation.py
32- if self._Test('GCC_WARN_ABOUT_MISSING_NEWLINE', 'YES', default='NO'):
32- if self._Test('GCC_WARN_ABOUT_MISSING_NEWLINE', 'YES', default='NO'):
33- cflags.append('-Wnewline-eof')
33- cflags.append('-Wnewline-eof')
34-
34-
35− self._AppendPlatformVersionMinFlags(cflags)
35+ # In Xcode, this is only activated when GCC_COMPILER_VERSION is clang or
36−
36+ # llvm-gcc. It also requires a fairly recent libtool, and
37− # TODO:
37+ # if the system clang isn't used, DYLD_LIBRARY_PATH needs to contain the
38−@@ -334,7 +322,6 @@
38+@@ -553,7 +541,6 @@
39 # TODO: Supporting fat binaries will be annoying.
39 # TODO: Supporting fat binaries will be annoying.
40 self._WarnUnimplemented('ARCHS')
40 self._WarnUnimplemented('ARCHS')
41 archs = ['i386']
41 archs = ['i386']
@@ -43,7 +43,7 @@ Index: gyp/pylib/gyp/xcode_emulation.py
43
43
44 if archs[0] in ('i386', 'x86_64'):
44 if archs[0] in ('i386', 'x86_64'):
45 if self._Test('GCC_ENABLE_SSE3_EXTENSIONS', 'YES', default='NO'):
45 if self._Test('GCC_ENABLE_SSE3_EXTENSIONS', 'YES', default='NO'):
46−@@ -570,7 +557,6 @@
46+@@ -811,7 +798,6 @@
47 # TODO: Supporting fat binaries will be annoying.
47 # TODO: Supporting fat binaries will be annoying.
48 self._WarnUnimplemented('ARCHS')
48 self._WarnUnimplemented('ARCHS')
49 archs = ['i386']
49 archs = ['i386']