$NetBSD: patch-ad,v 1.7 2004/10/14 22:29:04 dmcmahill Exp $ --- Makefile.in.orig 2003-06-25 03:48:39.000000000 +0200 +++ Makefile.in 2003-07-12 19:11:41.000000000 +0200 @@ -170,7 +170,17 @@ lexor.o: lexor.cc parse.h +# work around buggy compilers when compiling the parser with optimization +# make sure no one sneaks a -O* in on us via one of these variables +# set in the environment +CXX_NOOPT=$(CXX:-O%=) +CPPFLAGS_NOOPT=$(CPPFLAGS:-O%=) +CXXFLAGS_NOOPT=$(CXXFLAGS:-O%=) + parse.o: parse.cc + @[ -d dep ] || mkdir dep + $(CXX_NOOPT) $(CPPFLAGS_NOOPT) $(CXXFLAGS_NOOPT) -MD -c $< -o $*.o + mv $*.d dep/$*.d parse.cc: $(srcdir)/parse.y $(YACC) --verbose -t -p VL -d -o parse.cc $(srcdir)/parse.y