From 98b1ce91f6ab65b88b759e7ada18133b9257b203 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 18 Jul 2012 21:26:23 +0000 Subject: [PATCH] build: fix mksnapshot crash on sunos Unconditionally compile V8 with -fno-strict-aliasing on all platforms. gcc 4.5.2 on sunos generates bad code when -fstrict-aliasing is enabled, which undoubtedly means that there are more buggy versions of gcc out there. -fstrict-aliasing does not give a significant performance boost so let's just disable it. Fixes #3736. --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 6c724111a8..48d65385e9 100755 --- a/configure +++ b/configure @@ -265,6 +265,8 @@ def compiler_version(): def configure_node(o): + # TODO add gdb + o['variables']['v8_no_strict_aliasing'] = 1 # work around compiler bugs o['variables']['node_prefix'] = os.path.expanduser(options.prefix or '') o['variables']['node_install_npm'] = b(not options.without_npm) o['variables']['node_install_waf'] = b(not options.without_waf)