From marka@isc.org  Mon Feb  2 22:44:12 2004
Return-Path: <marka@isc.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 34CD316A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Feb 2004 22:44:12 -0800 (PST)
Received: from bsdi.dv.isc.org (c211-30-120-24.carlnfd2.nsw.optusnet.com.au [211.30.120.24])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D721E43D3F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Feb 2004 22:44:10 -0800 (PST)
	(envelope-from marka@isc.org)
Received: from bsdi.dv.isc.org (localhost.dv.isc.org [127.0.0.1])
	by bsdi.dv.isc.org (8.12.10/8.12.10) with ESMTP id i136i8Cq002593
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 3 Feb 2004 17:44:08 +1100 (EST)
	(envelope-from marka@bsdi.dv.isc.org)
Received: (from marka@localhost)
	by bsdi.dv.isc.org (8.12.10/8.12.10/Submit) id i136i6a7002592;
	Tue, 3 Feb 2004 17:44:06 +1100 (EST)
	(envelope-from marka)
Message-Id: <200402030644.i136i6a7002592@bsdi.dv.isc.org>
Date: Tue, 3 Feb 2004 17:44:06 +1100 (EST)
From: Mark Andrews <marka@isc.org>
Reply-To: Mark Andrews <marka@isc.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: gcc/config/freebsd-spec.h 1.6 is incomplete
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         62300
>Category:       bin
>Synopsis:       gcc/config/freebsd-spec.h 1.6 is incomplete
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 02 22:50:14 PST 2004
>Closed-Date:    Sat Jun 03 05:12:13 GMT 2006
>Last-Modified:  Sat Jun 03 05:12:13 GMT 2006
>Originator:     Mark Andrews
>Release:        FreeBSD 5.2 i386
>Organization:
ISC
>Environment:

	FreeBSD 5.2

>Description:
	
	The change to src/contrib/gcc/config/freebsd-spec.h 1.16
	is not complete.  gcc built against 1.16 will not link
	code in 5.2 if -pthread is specified as -lpthread does not
	exist.

>How-To-Repeat:
	
	by inspection

>Fix:

	Add an additional __FreeBSD_version test

	#if __FreeBSD_version > 502000
	#define FBSD_LIB_SPEC "				\
	  %{!shared:					\
	    %{!pg: %{pthread:-lpthread} -lc}		\
	    %{pg:  %{pthread:-lpthread_p} -lc_p}	\
	  }"
	#elif __FreeBSD_version >= 500016
	#define FBSD_LIB_SPEC "				\
	  %{!shared:					\
	    %{!pg: %{pthread:-lc_r} -lc}		\
	    %{pg:  %{pthread:-lc_r_p} -lc_p}		\
	  }"
	#else
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: rodrigc 
State-Changed-When: Sat Jun 3 05:06:14 UTC 2006 
State-Changed-Why:  
libpthread exists in FreeBSD 5.x where x > 2, so this bug is not relevant 
anymore. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62300 
>Unformatted:
