Hi all, In my never ending quest to make my life as complicated as possible I'm in the process of converting code over to the x86_64 platform (and I'll even make rpm's if I can get this all to work) I've just converted all the assembly files for xvidcore over to x86_64/yasm format. All these file compile fine once adjusted for 64 bit. The problem is trying to create a shared library from the .o files. The same source under i386 just links into shared libs fine, but with x86_64 ld complains:
cpuid.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
Of course recompiling with -fPIC isn't an option as cpuid.o is built from cpuid.asm. Is there an easy solution for this or am I looking at adding GOT references to the code and manually figuring out the relative locations ? Thanks Mike