diff options
author | obrien <obrien@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-21 17:34:18 +0000 |
---|---|---|
committer | obrien <obrien@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-12-21 17:34:18 +0000 |
commit | 894a35c4c324acdc0a1ddfc90233b8183b9ae851 (patch) | |
tree | ecfac92ad9b6dd980ad7bdba88cd9daa9244a922 /gcc | |
parent | 7880033a227a225e74c51bfbba05153f53670194 (diff) | |
download | gcc-894a35c4c324acdc0a1ddfc90233b8183b9ae851.tar.gz |
2004-12-21 David O'Brien <obrien@FreeBSD.org>
* config/freebsd-spec.h: Use KSE pthread lib for -pthread.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92462 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/freebsd-spec.h | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71a1525bc42..293d4118c88 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-12-21 David O'Brien <obrien@FreeBSD.org> + + * config/freebsd-spec.h: Use KSE pthread lib for -pthread. + 2004-12-21 James A. Morrison <phython@gcc.gnu.org> PR c/18963 diff --git a/gcc/config/freebsd-spec.h b/gcc/config/freebsd-spec.h index 15f64a23d1e..398a9326a3c 100644 --- a/gcc/config/freebsd-spec.h +++ b/gcc/config/freebsd-spec.h @@ -107,12 +107,12 @@ Boston, MA 02111-1307, USA. */ 500016, select the appropriate libc, depending on whether we're doing profiling or need threads support. At __FreeBSD_version 500016 and later, when threads support is requested include both - -lc and -lc_r instead of only -lc_r. To make matters interesting, - we can't actually use __FreeBSD_version provided by <osreldate.h> - directly since it breaks cross-compiling. As a final twist, make - it a hard error if -pthread is provided on the command line and gcc - was configured with --disable-threads (this will help avoid bug - reports from users complaining about threading when they + -lc and the threading lib instead of only -lc_r. To make matters + interesting, we can't actually use __FreeBSD_version provided by + <osreldate.h> directly since it breaks cross-compiling. As a final + twist, make it a hard error if -pthread is provided on the command + line and gcc was configured with --disable-threads (this will help + avoid bug reports from users complaining about threading when they misconfigured the gcc bootstrap but are later consulting FreeBSD manual pages that refer to the mythical -pthread option). */ @@ -132,8 +132,8 @@ is built with the --enable-threads configure-time option.} \ #if FBSD_MAJOR >= 5 #define FBSD_LIB_SPEC " \ %{!shared: \ - %{!pg: %{pthread:-lc_r} -lc} \ - %{pg: %{pthread:-lc_r_p} -lc_p} \ + %{!pg: %{pthread:-lpthread} -lc} \ + %{pg: %{pthread:-lpthread_p} -lc_p} \ }" #else #define FBSD_LIB_SPEC " \ |