use gcc flag -fPIC for shared objects

David Watzke <david <at> watzke.cz>
2007-02-21 16:22:28 GMT

Hello,
I wrote a patch for cdparanoia to use gcc flag -fPIC for shared objects.
Compilation fails on amd64 without it:
relocation R_X86_64_32 against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
scan_devices.o: could not read symbols: Bad value
Patch is available here:
http://www.watzke.cz/files/patches/cdparanoia-3.10_pre0-fPIC.patch
David

Re: use gcc flag -fPIC for shared objects

Maarten Maathuis <madman2003 <at> gmail.com>
2007-02-27 22:14:35 GMT

The patch i sent a while back also included this, and some other small things.
On 2/27/07, xiphmont <at> xiph.org <xiphmont <at> xiph.org> wrote:
> I am unable to retrieve this patch from your server. Could you attach it?
>
> Thanks,
> Monty
> _______________________________________________
> Paranoia-dev mailing list
> Paranoia-dev <at> xiph.org
> http://lists.xiph.org/mailman/listinfo/paranoia-dev
>

Re: use gcc flag -fPIC for shared objects

<xiphmont <at> xiph.org>
2007-02-27 22:19:07 GMT

On 2/27/07, Maarten Maathuis <madman2003 <at> gmail.com> wrote:
> The patch i sent a while back also included this, and some other small things.
I thought so, but it's easier to verify without thinking by looking at
the patch
Monty