Pascal Viandier wrote:
The flags passed to the linker look good as far as I can see in the documentation of Sun ld. Should I recompile libgpc.a with the -fPIC compiler option to make the code position-independent?
Yes, something like
cd gcc/p/rts make clean make CFLAGS="-O2 -fPIC"
or make libgpc shared also.
cd gcc/p/rts make clean make GPCSOLIBNAME=libgpc_xxx.so WITH_SHARED=yes
Regards,
Adriaan van Os