Solaris Weirdness with 2.1

Martin von Loewis loewis at informatik.hu-berlin.de
Thu May 17 12:06:59 EDT 2001


Greg Ewing <see at my.signature> writes:

> It seems that "gcc -shared" invokes ld with an option
> to complain about this. So, you can either use "ld -G"
> as you say, or recompile the .c files with -fPIC.

Using ld -G is bad because it removes other necessary side effects of
gcc -shared, e.g. proper linking of crtbeginS.o. Instead, you should
add -mimpure-text to avoid the linker error.

As you say, recompiling the library with -fPIC is even better.

Regards,
Martin



More information about the Python-list mailing list