summaryrefslogtreecommitdiff
path: root/cad/verilog-current/patches/patch-ad
blob: 80b6e5fe94163622eea0ef52d58bd59445ec3a3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ad,v 1.4 2000/04/30 18:15:18 dmcmahill Exp $

don't use -O2 on parse.cc because of compiler bugs on sparc and pmax
(maybe others).

--- Makefile.in.orig	Fri Apr 28 12:50:53 2000
+++ Makefile.in	Sat Apr 29 08:39:00 2000
@@ -104,5 +104,5 @@
 
 iverilog: iverilog.c
-	$(CC) $(CPPFLAGS) -o iverilog -DIVL_ROOT='"@libdir@/ivl"' iverilog.c
+	$(CC) $(CPPFLAGS) -o iverilog -DCXX='"@CXX@"' -DIVL_ROOT='"@libdir@/ivl"' -DIVL_INC='"@includedir@"' -DIVL_LIB='"@libdir@"' -DDLLIB='"@DLLIB@"' iverilog.c
 
 %.o dep/%.d: %.cc
@@ -115,4 +115,6 @@
 
 parse.o dep/parse.d: parse.cc
+	$(CXX) -MD -c -I. $(CPPFLAGS)  $<
+	mv parse.d dep/parse.d
 
 parse.h parse.cc: $(srcdir)/parse.y