1 $NetBSD: patch-aa,v 1.7 2004/12/03 15:28:33 wiz Exp $
3 --- Makefile.in.orig Wed Jul 26 19:24:58 2000
5 @@ -641,3 +641,20 @@ dist-hook:
6 # Tell versions [3.59,3.63) of GNU make to not export all variables.
7 # Otherwise a system limit (for SysV at least) may be exceeded.
10 +# problems with optimization. triggers internal compiler errors
12 +COMPILE_NOOPT=${COMPILE:C/-O[0-9]*//g}
13 +LTCOMPILE_NOOPT=${LTCOMPILE:C/-O[0-9]*//g}
15 +.if (${MACHINE_ARCH} == "alpha")
17 +gdk-glue.o: gdk-glue.c
18 + $(COMPILE_NOOPT) -c gdk-glue.c
20 +gdk-glue.lo: gdk-glue.c
21 + @echo "Compiling without optimization to work around gcc -O* compiler bug"
22 + $(LTCOMPILE_NOOPT) -c gdk-glue.c