view sources/patches/uClibc-fixm68k.patch @ 1719:78050a31d1ee draft

Sigh. Checked in the wrong version of the patch (typo fix).
author Rob Landley <rob@landley.net>
date Tue, 06 Jan 2015 13:15:33 -0600
parents 83de80c10db8
children
line wrap: on
line source

Avoid an internal compiler error in inet_ntoa.c for m68k.

--- uClibc.bak/Rules.mak	2012-04-11 12:04:21.000000000 -0500
+++ uClibc/Rules.mak	2012-04-18 23:56:18.746334332 -0500
@@ -226,6 +226,7 @@
 
 OPTIMIZATION:=
 # Use '-Os' optimization if available, else use -O2, allow Config to override
+ifneq ($(TARGET_ARCH),m68k)
 $(eval $(call check-gcc-var,-Os))
 ifneq ($(CFLAG_-Os),)
 OPTIMIZATION += $(CFLAG_-Os)
@@ -233,6 +234,7 @@
 $(eval $(call check-gcc-var,-O2))
 OPTIMIZATION += $(CFLAG_-O2)
 endif
+endif
 # Use the gcc 3.4 -funit-at-a-time optimization when available
 $(eval $(call check-gcc-var,-funit-at-a-time))
 OPTIMIZATION += $(CFLAG_-funit-at-a-time)