Project

General

Profile

Backport #2247 » patch-Makefile.in

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

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