Node:Linking with foreign object files, Next:Starting a simulation from a foreign program, Previous:Restrictions on foreign declarations, Up:Interfacing to other languages
You may add additionnal files or options during the link using the -Wl,
of GHDL
, as described in Elaboration mode. For example:
$ ghdl -e -Wl,-lm math_tbwill create the
math_tb
executable with the lm
(mathematical) library.
Note the c
library is always linked with an executable.