Project

General

Profile

Backport #2247 » patch-Makefile.in

Work-around strict-aliasing violations in util.c - kot (Міхаіл T.), 10/22/2009 12:59 AM

 
--- Makefile.in 2009-05-26 08:27:14.000000000 -0400
+++ Makefile.in 2009-10-21 11:24:24.812598000 -0400
@@ -52,4 +52,8 @@
MINIOBJS = @MINIOBJS@
+# Whenever an object-file util.o is created, pass this additional
+# flag to the compiler:
+util.o-CFLAGS= -fno-strict-aliasing
+
RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@
RUBY_SO_NAME=@RUBY_SO_NAME@
@@ -172,5 +176,5 @@
.c.@OBJEXT@:
- $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
+ $(CC) $(CFLAGS) ${$@-CFLAGS} $(CPPFLAGS) -c $<
.s.@OBJEXT@:
(2-2/3)