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.
pull/24503/head
Ben Noordhuis 2012-07-18 21:26:23 +00:00
parent beb7425c18
commit 98b1ce91f6
1 changed files with 2 additions and 0 deletions

2
configure vendored
View File

@ -265,6 +265,8 @@ def compiler_version():
def configure_node(o): 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_prefix'] = os.path.expanduser(options.prefix or '')
o['variables']['node_install_npm'] = b(not options.without_npm) o['variables']['node_install_npm'] = b(not options.without_npm)
o['variables']['node_install_waf'] = b(not options.without_waf) o['variables']['node_install_waf'] = b(not options.without_waf)