Add library search path option to iverilog-vpi (GitHub issue #145).

(cherry picked from commit 4e2ba29dc6)
This commit is contained in:
Martin Whitaker 2017-01-29 09:32:14 +00:00
parent 38013f7a34
commit b8c8f03037
2 changed files with 12 additions and 3 deletions

View File

@ -1,4 +1,4 @@
.TH iverilog-vpi 1 "May 10th, 2015" "" "Version %M.%n%E" .TH iverilog-vpi 1 "Jan 29th, 2017" "" "Version %M.%n%E"
.SH NAME .SH NAME
iverilog-vpi - Compile front end for VPI modules iverilog-vpi - Compile front end for VPI modules
@ -26,6 +26,11 @@ becomes \fIfoo.vpi\fP.
Include the named library in the link of the VPI module. This allows Include the named library in the link of the VPI module. This allows
VPI modules to further reference external libraries. VPI modules to further reference external libraries.
.TP 8
.B -L\fIdirectory\fP
Add \fIdirectory\fP to the list of directories that will be searched
for library files.
.TP 8 .TP 8
.B -I\fIdirectory\fP .B -I\fIdirectory\fP
Add \fIdirectory\fP to the list of directories that will be searched Add \fIdirectory\fP to the list of directories that will be searched
@ -115,7 +120,7 @@ iverilog(1), vvp(1),
.SH COPYRIGHT .SH COPYRIGHT
.nf .nf
Copyright \(co 2002\-2015 Stephen Williams Copyright \(co 2002\-2017 Stephen Williams
This document can be freely redistributed according to the terms of the This document can be freely redistributed according to the terms of the
GNU General Public License version 2.0 GNU General Public License version 2.0

View File

@ -35,6 +35,7 @@ CCSRC=
CXSRC= CXSRC=
OBJ= OBJ=
LIB= LIB=
LIBDIR=
OUT= OUT=
INCOPT= INCOPT=
DEFS= DEFS=
@ -81,6 +82,9 @@ do
-l*) LIB="$LIB $parm" -l*) LIB="$LIB $parm"
;; ;;
-L*) LIBDIR="$LIBDIR $parm"
;;
-I*) INCOPT="$INCOPT $parm" -I*) INCOPT="$INCOPT $parm"
;; ;;
@ -148,4 +152,4 @@ then
fi fi
echo "Making $OUT from $OBJ..." echo "Making $OUT from $OBJ..."
exec $LD -o $OUT $LDFLAGS $OBJ $LIB $LDLIBS exec $LD -o $OUT $LDFLAGS $LIBDIR $OBJ $LIB $LDLIBS