bin/62300: gcc/config/freebsd-spec.h 1.6 is incomplete
Mark Andrews
marka at isc.org
Mon Feb 2 22:50:19 PST 2004
>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:
More information about the freebsd-bugs
mailing list