Trying to compile my VPI shared library i get the following error on amd64:

/usr/bin/ld: e~tb.o: relocation R_X86_64_32 against `__ghdl_rti_top'
can not be used when making a shared object; recompile with -fPIC

How can I do just that?
Adding -fPIC to AM_CPPFLAGS doeesn't help.

Note that I'm elaborating e~tb.o with "ghdl -e --ieee=synopsys tb".
Adding -fPIC after -e doesn't show any error, but doesn't solve the
problem either.

-Pascal
-- 
Homepage (http://organact.mine.nu)
Debian GNU/Linux (http://www.debian.org)
LACIME: École de technologie supérieure (http://lacime.etsmtl.ca)

_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to