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