Date: Tue, 3 Feb 2004 17:44:06 +1100 (EST) From: Mark Andrews <marka@isc.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/62300: gcc/config/freebsd-spec.h 1.6 is incomplete Message-ID: <200402030644.i136i6a7002592@bsdi.dv.isc.org> Resent-Message-ID: <200402030650.i136oEHg058020@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 02 22:50:14 PST 2004 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402030644.i136i6a7002592>