alion
November 5th, 2006, 12:30 PM
It's a fact, that on certain architectures (AMD64 among them), shared libraries must be PIC enabled.
But when I'm trying to link a library I get the following message:
libc.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC libc.o: could not read symbols: Bad value
So I already recompiled a bunch of the libraries my app is dependent of.
But I did that using source checkout and ./configure && make.
Is there a good-looking way to compile the whole runtime (libc + libstdc++,etc) with fPIC flag on Ubuntu?
But when I'm trying to link a library I get the following message:
libc.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC libc.o: could not read symbols: Bad value
So I already recompiled a bunch of the libraries my app is dependent of.
But I did that using source checkout and ./configure && make.
Is there a good-looking way to compile the whole runtime (libc + libstdc++,etc) with fPIC flag on Ubuntu?