On 10/31/07, Brian Paul <[EMAIL PROTECTED]> wrote:
> Dan Nicholson wrote:
> > Some of the Linux and FreeBSD x86 (non-static) configurations remove
> > -fPIC. However, the linux-x86 target doesn't. I'm not gonna try to
> > pretend to be an expert on position-independent code, but I'm
> > wondering if this should be done. If so, should all the Linux x86
> > targets be standardized on that?
>
> Well, we want PIC for shared libraries so I'd expect all the
> non-static-lib configs to use it.  But I'm not an expert either...

Right, but in linux-dri-x86 (shared), there's a comment "# Unnecessary
on x86, generally." before clearing PIC_FLAGS. Same with
freebsd-dri-x86. I know that Fedora puts the -fPIC back in for all
architectures they build. This change goes back to 2004 (0a21a4aa).

FWIW, libtool adds -fPIC by default for shared library code on GCC
with a few exceptions.

--
Dan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to