This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix -pthread for PowerPC/Linux shared libraries


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]