glibc/glibc-strict-aliasing.diff

26 lines
919 B
Diff
Raw Normal View History

Index: glibc-2.15.90/elf/Makefile
===================================================================
--- glibc-2.15.90.orig/elf/Makefile
+++ glibc-2.15.90/elf/Makefile
@@ -50,6 +50,7 @@ include ../Makeconfig
ifeq ($(unwind-find-fde),yes)
routines += unwind-dw2-fde-glibc
shared-only-routines += unwind-dw2-fde-glibc
+CFLAGS-unwind-dw2-fde-glibc.c = -fno-strict-aliasing
endif
before-compile = $(objpfx)trusted-dirs.h
Index: glibc-2.15.90/sunrpc/Makefile
===================================================================
--- glibc-2.15.90.orig/sunrpc/Makefile
+++ glibc-2.15.90/sunrpc/Makefile
@@ -145,6 +145,8 @@ CFLAGS-key_call.c = -fexceptions
CFLAGS-pmap_rmt.c = -fexceptions
CFLAGS-clnt_perr.c = -fexceptions
CFLAGS-openchild.c = -fexceptions
+CFLAGS-clnt_tcp.c = -fno-strict-aliasing
+CFLAGS-clnt_unix.c = -fno-strict-aliasing
sunrpc-CPPFLAGS = -D_RPC_THREAD_SAFE_
CPPFLAGS += $(sunrpc-CPPFLAGS)