relocation R_X86_64_32 can not be used (Was: Re: (no subject))
Wesley Morgan
morganw at chemikals.org
Tue Apr 11 11:45:52 UTC 2006
On Mon, 10 Apr 2006, Steve Kargl wrote:
> On Tue, Apr 11, 2006 at 12:30:02AM -0300, Marc G. Fournier wrote:
>>> cc -shared -o common.o stream.o registry.o config.o memory.o
>>> /usr/bin/ld: stream.o: relocation R_X86_64_32 can not be used when making
>>> a shared object; recompile with -fPIC
>>> stream.o: could not read symbols: Bad value
>
> You're mixing static and share libs. Add -static to your
> CFLAGS.
>
>
Or you could probably compile the other objects with -fPIC.
--
This .signature sanitized for your protection
More information about the freebsd-amd64
mailing list