aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-03-08 05:33:24 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-03-08 05:33:24 +0000
commitebdff85b87a7064e6ca4d2cb30d372dc61358e3f (patch)
treeccd6e6c156458ab1f27d973d626e952bd455e82b /contrib/gcc
parent9cb13c2344bb288bc085cca868cec9063d758510 (diff)
downloadsrc-ebdff85b87a7064e6ca4d2cb30d372dc61358e3f.tar.gz
src-ebdff85b87a7064e6ca4d2cb30d372dc61358e3f.zip
Add hooks for John Birrell's kernel thread support library.
Submitted by: John Birrell <jb@cimlogic.com.au>
Notes
Notes: svn path=/head/; revision=34230
Diffstat (limited to 'contrib/gcc')
-rw-r--r--contrib/gcc/config/i386/freebsd.h2
-rw-r--r--contrib/gcc/config/i386/freebsd.h.fixed2
2 files changed, 2 insertions, 2 deletions
diff --git a/contrib/gcc/config/i386/freebsd.h b/contrib/gcc/config/i386/freebsd.h
index 913fb095a423..f3503fca2166 100644
--- a/contrib/gcc/config/i386/freebsd.h
+++ b/contrib/gcc/config/i386/freebsd.h
@@ -483,7 +483,7 @@ do { \
/* Like the default, except no -lg, and no -p. */
#undef LIB_SPEC
-#define LIB_SPEC "%{!shared:%{!pg:%{!pthread:-lc}%{pthread:-lc_r}}%{pg:%{!pthread:-lc_p}%{pthread:-lc_r_p}}}"
+#define LIB_SPEC "%{!shared:%{!pg:%{!pthread:%{!kthread:-lc}%{kthread:-lpthread -lc}}%{pthread:-lc_r}}%{pg:%{!pthread:%{!kthread:-lc_r}%{kthread:-lpthread_p -lc_p}}%{pthread:-lc_r_p}}}"
/* Let gcc locate this for us according to the -m rules */
#undef LIBGCC_SPEC
diff --git a/contrib/gcc/config/i386/freebsd.h.fixed b/contrib/gcc/config/i386/freebsd.h.fixed
index 913fb095a423..f3503fca2166 100644
--- a/contrib/gcc/config/i386/freebsd.h.fixed
+++ b/contrib/gcc/config/i386/freebsd.h.fixed
@@ -483,7 +483,7 @@ do { \
/* Like the default, except no -lg, and no -p. */
#undef LIB_SPEC
-#define LIB_SPEC "%{!shared:%{!pg:%{!pthread:-lc}%{pthread:-lc_r}}%{pg:%{!pthread:-lc_p}%{pthread:-lc_r_p}}}"
+#define LIB_SPEC "%{!shared:%{!pg:%{!pthread:%{!kthread:-lc}%{kthread:-lpthread -lc}}%{pthread:-lc_r}}%{pg:%{!pthread:%{!kthread:-lc_r}%{kthread:-lpthread_p -lc_p}}%{pthread:-lc_r_p}}}"
/* Let gcc locate this for us according to the -m rules */
#undef LIBGCC_SPEC