From 4ba2afbbe1c9adae6cebfa9888023bca7e958666 Mon Sep 17 00:00:00 2001 From: steve Date: Tue, 21 Feb 2006 02:38:44 +0000 Subject: [PATCH] Use g++ linker if there are C++ source files. --- iverilog-vpi.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/iverilog-vpi.sh b/iverilog-vpi.sh index 4268ca278..a763c1bfb 100644 --- a/iverilog-vpi.sh +++ b/iverilog-vpi.sh @@ -17,11 +17,11 @@ # 59 Temple Place - Suite 330 # Boston, MA 02111-1307, USA # -#ident "$Id: iverilog-vpi.sh,v 1.14 2004/05/20 00:40:34 steve Exp $" +#ident "$Id: iverilog-vpi.sh,v 1.15 2006/02/21 02:38:44 steve Exp $" # These are the variables used for compiling files CC=gcc -CXX=gcc +CXX=g++ CFLAGS="@PIC@ -O -I@INCLUDEDIR@" # These are used for linking... @@ -63,6 +63,7 @@ do ;; *.cc) CXSRC="$CXSRC $parm" + LD=$CXX if [ x$OUT = x ]; then OUT=`basename $parm .cc` fi