diff options
author | Fabian Groffen <grobian@gentoo.org> | 2012-05-26 10:10:50 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2012-05-26 10:10:50 +0000 |
commit | 5cd704d4be39d2821f0c57d7ccfbd9bd8803eb7b (patch) | |
tree | fa5a96c6aebcad222a722c98bb9426d50d87da8a /dev-lang/v8/files | |
parent | arm stable, bug #416281 (diff) | |
download | gentoo-2-5cd704d4be39d2821f0c57d7ccfbd9bd8803eb7b.tar.gz gentoo-2-5cd704d4be39d2821f0c57d7ccfbd9bd8803eb7b.tar.bz2 gentoo-2-5cd704d4be39d2821f0c57d7ccfbd9bd8803eb7b.zip |
Fix compilation on Darwin, bug #417401
(Portage version: 2.2.01.20430-prefix/cvs/Darwin i386)
Diffstat (limited to 'dev-lang/v8/files')
-rw-r--r-- | dev-lang/v8/files/v8-3.10.8.10-darwin-arch.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-lang/v8/files/v8-3.10.8.10-darwin-arch.patch b/dev-lang/v8/files/v8-3.10.8.10-darwin-arch.patch new file mode 100644 index 000000000000..8fbb34980aa1 --- /dev/null +++ b/dev-lang/v8/files/v8-3.10.8.10-darwin-arch.patch @@ -0,0 +1,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) |