File 0003-Build-with-fstrict-aliasing.patch of Package reptyr

From 354a0b3ed248c15ffc6fc00c697373534594d05e Mon Sep 17 00:00:00 2001
From: Nelson Elhage <nelhage@nelhage.com>
Date: Tue, 26 Jan 2016 22:08:15 -0800
Subject: [PATCH 3/3] Build with -fstrict-aliasing

fixes #68
---
 Makefile    | 5 ++++-
 Vagrantfile | 4 ++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 0fb5b0d..2657034 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,7 @@
-override CFLAGS+=-Wall -Werror -D_GNU_SOURCE -g
+# Our `cmsg` usage in attach.c is not
+# `-fstrict-aliasing`-compatible. Just disable it, since the
+# workaround is a pain.
+override CFLAGS+=-Wall -Werror -D_GNU_SOURCE -g -fno-strict-aliasing
 OBJS=reptyr.o reallocarray.o attach.o
 UNAME_S := $(shell uname -s)
 ifeq ($(UNAME_S),Linux)
diff --git a/Vagrantfile b/Vagrantfile
index d8696e2..d42fe15 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -23,6 +23,10 @@ EOS
     machine.vm.box = 'chef/fedora-20'
   end
 
+  config.vm.define 'centos-6-x86_64' do |machine|
+    machine.vm.box = 'bento/centos-6.7'
+  end
+
   config.vm.synced_folder ".", "/vagrant", type: 'nfs', id: 'vagrant-root'
 
 end
-- 
2.11.0

openSUSE Build Service is sponsored by