When I compile my pgf90 program to get outputfile as a shared library, I meet following error:
/usr/bin/ld: toolkit.o: relocation R_X86_64_32S against `a local symbol’ can not be used when making a shared object; recompile with -fPIC
toolkit.o: could not read symbols: Bad value
My own compiling command is :
/usr/local/pgi/linux86-64/6.1/bin/pgf90 -shared -fPIC *.o
I am using the 6.1 64bit version on a AMD system.