From 319503af02ac49ae83900e6c80ea8db3d03cf636 Mon Sep 17 00:00:00 2001 From: "Andrea C. Granata" Date: Sat, 8 Sep 2012 13:43:49 +0200 Subject: [PATCH] Disable strict-aliasing on FreeBSD with stock compiler. --- patches/gcc42-on-freebsd.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/gcc42-on-freebsd.patch diff --git a/patches/gcc42-on-freebsd.patch b/patches/gcc42-on-freebsd.patch new file mode 100644 index 0000000..c353c27 --- /dev/null +++ b/patches/gcc42-on-freebsd.patch @@ -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' ], + }],