diff options
Diffstat (limited to 'cad/verilog/patches/patch-ad')
-rw-r--r-- | cad/verilog/patches/patch-ad | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cad/verilog/patches/patch-ad b/cad/verilog/patches/patch-ad index abfe216ac8a..0de062a87b6 100644 --- a/cad/verilog/patches/patch-ad +++ b/cad/verilog/patches/patch-ad @@ -1,25 +1,25 @@ -$NetBSD: patch-ad,v 1.10 2011/04/13 14:19:29 drochner Exp $ +$NetBSD: patch-ad,v 1.11 2014/01/07 09:43:54 mef Exp $ ---- Makefile.in.orig 2010-09-27 17:42:32.000000000 +0000 -+++ Makefile.in -@@ -218,8 +218,19 @@ main.o: main.cc version_tag.h +make sure no one sneaks a -O* in on us via one of these variables +set in the environment + +--- Makefile.in.orig 2013-08-20 04:10:31.000000000 +0900 ++++ Makefile.in 2013-12-20 11:35:09.000000000 +0900 +@@ -222,6 +222,17 @@ lexor.o: lexor.cc parse.h --parse.o: parse.cc -+ -+# 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 parse.h: $(srcdir)/parse.y - $(YACC) --verbose -t -p VL -d -o parse.cc $(srcdir)/parse.y - mv parse.cc.h parse.h 2>/dev/null || mv parse.hh parse.h ++ + parse.o: parse.cc + + # Build this in two steps to avoid parallel build issues (see pr3462585) |