diff options
author | Trevor Norris <trev.norris@gmail.com> | 2015-02-10 13:10:05 -0700 |
---|---|---|
committer | Julien Gilli <julien.gilli@joyent.com> | 2015-05-11 18:04:05 -0700 |
commit | e1cc263ce8bfc14681cb277863f7d19a807bf551 (patch) | |
tree | 268bdf9dc3c0a47ffdc13d0fc018a7f67ceceef8 | |
parent | 84f1ab611480ab1ee1142b5fb0b39f57faa7dd3f (diff) | |
download | node-new-e1cc263ce8bfc14681cb277863f7d19a807bf551.tar.gz |
build: fix use of strict aliasing
The -fno-strict-aliasing flag was added to fix compilation warnings when
building Node.js with GCC <= 4.4
Reviewed-By: Julien Gilli <julien.gilli@joyent.com>
PR-URL: https://github.com/joyent/node/pull/9179
PR: #25141
PR-URL: https://github.com/joyent/node/pull/25141
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Julien Gilli <jgilli@fastmail.fm>
-rw-r--r-- | deps/uv/uv.gyp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/uv/uv.gyp b/deps/uv/uv.gyp index acaed862d7..e5e3eabb6d 100644 --- a/deps/uv/uv.gyp +++ b/deps/uv/uv.gyp @@ -64,6 +64,12 @@ 'src/version.c' ], 'conditions': [ + [ 'gcc_version<=44', { + # GCC versions <= 4.4 do not handle the aliasing in the queue + # implementation, so disable aliasing on these platforms + # to avoid subtle bugs + 'cflags': [ '-fno-strict-aliasing' ], + }], [ 'OS=="win"', { 'defines': [ '_WIN32_WINNT=0x0600', |