[Pyrex] Ignoring warnings and lots of TEXTRELS

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Sep 15 02:17:26 CEST 2005


Nathaniel Haggard wrote:
> Also the generated .so file contains TEXTRELs
> 
> readelf -d sharedobj.so | grep TEXTREL

It must be something to do with the compilation
or linking options you're using.

Did you compile it using the distutils extension,
or some other way? If you use distutils, it should be
using the same options that are used to compile
any other extension module on your platform.

If you're doing it another way, you may need to
include -fPIC or some such option when compiling
the C file to get position-independent code.

Greg



More information about the Pyrex mailing list