mirror of
https://github.com/rubyjs/libv8
synced 2023-03-27 23:21:48 -04:00
Disable strict-aliasing on FreeBSD with stock compiler.
This commit is contained in:
parent
9c5c447296
commit
319503af02
1 changed files with 14 additions and 0 deletions
14
patches/gcc42-on-freebsd.patch
Normal file
14
patches/gcc42-on-freebsd.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
diff --git a/build/standalone.gypi b/build/standalone.gypi
|
||||
index ebdf557..c7a59bc 100644
|
||||
--- a/build/standalone.gypi
|
||||
+++ b/build/standalone.gypi
|
||||
@@ -98,6 +98,9 @@
|
||||
[ 'OS=="linux"', {
|
||||
'cflags': [ '-ansi' ],
|
||||
}],
|
||||
+ [ 'OS=="freebsd"', {
|
||||
+ 'cflags': [ '-fno-strict-aliasing', ],
|
||||
+ }],
|
||||
[ 'visibility=="hidden"', {
|
||||
'cflags': [ '-fvisibility=hidden' ],
|
||||
}],
|
Loading…
Reference in a new issue