From 4b3d270286ad13a5681d283e7cdcd173bd69c815 Mon Sep 17 00:00:00 2001 From: chs Date: Tue, 4 Oct 2011 04:04:15 +0000 Subject: [PATCH] build cread.c with -O1 to work around a gcc 4.5 bug. --- sys/arch/amiga/stand/bootblock/boot/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/amiga/stand/bootblock/boot/Makefile b/sys/arch/amiga/stand/bootblock/boot/Makefile index 0065dd73360a..73261b251325 100644 --- a/sys/arch/amiga/stand/bootblock/boot/Makefile +++ b/sys/arch/amiga/stand/bootblock/boot/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.46 2011/07/12 03:09:03 mrg Exp $ +# $NetBSD: Makefile,v 1.47 2011/10/04 04:04:15 chs Exp $ .include .include # for HOST_SH @@ -88,8 +88,11 @@ CFLAGS= -ffreestanding ${COPTIM} ${INCPATH} ${DEFS} CFLAGS+= -Werror CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith +# XXX work around a gcc 4.5 bug +COPTS.cread.c = -O1 + .c.o: - ${CC} ${CFLAGS} -S $< -o $*.s + ${CC} ${CFLAGS} ${COPTS.${.IMPSRC:T}} -S $< -o $*.s ${TXLT} < $*.s | ${AS} ${AFLAGS} -o $@ rm $*.s