This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix -pthread for PowerPC/Linux shared libraries
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 17 Sep 2003 23:39:37 +0930
- Subject: Re: Fix -pthread for PowerPC/Linux shared libraries
- References: <20030917134401.GA29063@nevyn.them.org>
On Wed, Sep 17, 2003 at 09:44:01AM -0400, Daniel Jacobowitz wrote:
> --- sysv4.h 19 Jun 2003 21:47:22 -0000 1.135
> +++ sysv4.h 17 Sep 2003 13:41:52 -0000
> @@ -1065,7 +1065,7 @@ extern int fixuplabelno;
>
> /* GNU/Linux support. */
> #define LIB_LINUX_SPEC "%{mnewlib: --start-group -llinux -lc --end-group } \
> -%{!mnewlib: %{shared:-lc} %{!shared: %{pthread:-lpthread } \
> +%{!mnewlib: %{shared:-lc} %{pthread:-lpthread } %{!shared: \
> %{profile:-lc_p} %{!profile:-lc}}}"
>
> #ifdef HAVE_LD_PIE
I find the library order a little suspect, both before and after this
patch. Why is -lc listed before -lpthread when shared?
--
Alan Modra
IBM OzLabs - Linux Technology Centre