[Flac-dev] [lamont+buildd@hp.com: Bug#162718: flac_1.0.4-1(hppa/unstable): FTBFS: non-PIC code in shared object]
Matt Zimmerman
mdz at debian.org
Mon Sep 30 12:19:02 PDT 2002
On Mon, Sep 30, 2002 at 10:46:16AM -0700, Josh Coalson wrote:
> --- Matt Zimmerman <mdz at debian.org> wrote:
> > It looks like libplugin_common.a is being linked into the shared
> > object
> > libxmms-flac.so. In that case, all of the objects in
> > libplugin_common.a
> > must be compiled with -fPIC.
>
> Ah yes. I'm not clear on how this works; how do the compiler options for
> PIC make it down into the libtool invocation? Something automatically
> does it for shared libs but I don't know how to force it when just
> compiling the static one.
The only general way that I know is to configure libtool with --with-pic.
This means either configuring the directories separately, or doing some
awful hack like we did with -disable-static. Maybe the whole plugin setup
should share one libtool (for disable-static and with-pic) and everything
else can use a different one.
--
- mdz
More information about the Flac-dev
mailing list