From ebdff85b87a7064e6ca4d2cb30d372dc61358e3f Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 8 Mar 1998 05:33:24 +0000 Subject: [PATCH] Add hooks for John Birrell's kernel thread support library. Submitted by: John Birrell --- contrib/gcc/config/i386/freebsd.h | 2 +- contrib/gcc/config/i386/freebsd.h.fixed | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/gcc/config/i386/freebsd.h b/contrib/gcc/config/i386/freebsd.h index 913fb095a42..f3503fca216 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 913fb095a42..f3503fca216 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