[PATCH] Build libxf86config with -fPIC.
Mark Kettenis
mark.kettenis at xs4all.nl
Thu Nov 25 06:05:58 PST 2010
> From: Gaetan Nadon <memsize at videotron.ca>
> Date: Wed, 24 Nov 2010 20:59:11 -0500
>
> On Wed, 2010-11-24 at 17:42 -0800, Dan Nicholson wrote:
>
> > On Wed, Nov 24, 2010 at 3:23 PM, Mark Kettenis <mark.kettenis at xs4all.nl> wrote:
> > >> From: Gaetan Nadon <memsize at videotron.ca>
> > >> Date: Tue, 23 Nov 2010 09:34:29 -0500
> > >>
> > >> So far no one has claimed adding fPic is the correct way of creating a
> > >> shared lib or
> > >> that it is a necessary workaround to a situation libtool cannot handle
> > >> and that it will
> > >> work on all supported platforms.
> > >
> > > There certainly are platforms where -fPIC isn't the right choice.
> >
> > True, but libtool knows about these platforms and allows the user to
> > control it's usage with --with-pic. Seems better than blindly adding
> > -fPIC to the CFLAGS.
> >
>
> I interpreted Mark's comment as confirming that -fPIC should not be
> added to CFLAGS
> as it would not be appropriate for all platforms.
Indeed, that's what I meant.
> Perhaps Mark could comment on the patch you submitted, if not already
> done:
> http://lists.x.org/archives/xorg-devel/2010-November/015867.html
I'm not an expert on libtool anymore (nor a big fan of it). But Dan's
approach makes sense to me.
More information about the xorg-devel
mailing list