nodejs: Add patch to compile with GCC 4.3.3
[openembedded.git] / recipes / nodejs / files / 0001-Add-missing-compiler-flags-for-GCC-4.3.patch
blob080b88f09b5bb0ddeee755bffb464d532bd823b5
1 From 7cb51ed25b688be08825950ce3f5ce2ad38e3f95 Mon Sep 17 00:00:00 2001
2 From: Chase Maupin <Chase.Maupin@ti.com>
3 Date: Tue, 12 Jul 2011 11:00:48 -0500
4 Subject: [PATCH] Add missing compiler flags for GCC 4.3
6 * When compiling nodejs for GCC 4.3.3 you need to also add the
7 flag -fno-tree-sink.
8 * This patch was taken from the thread at:
9 * https://github.com/joyent/node/issues/883
10 * Believe that no action is taken on this change upstream because
11 it is GCC 4.3.3 specific and is not required for GCC 4.5
13 Upstream-Status: Denied
15 Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
16 ---
17 deps/v8/SConstruct | 1 +
18 1 files changed, 1 insertions(+), 0 deletions(-)
20 diff --git a/deps/v8/SConstruct b/deps/v8/SConstruct
21 index b2542fd..31c4c7b 100644
22 --- a/deps/v8/SConstruct
23 +++ b/deps/v8/SConstruct
24 @@ -210,6 +210,7 @@ LIBRARY_FLAGS = {
26 'arch:arm': {
27 'CPPDEFINES': ['V8_TARGET_ARCH_ARM'],
28 + 'CCFLAGS': ['-fno-tree-sink'],
29 'unalignedaccesses:on' : {
30 'CPPDEFINES' : ['CAN_USE_UNALIGNED_ACCESSES=1']
32 --
33 1.7.0.4