From 9163a26c66b6d4d84f50f95afc5b41040fdcadf8 Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 14 Apr 1999 00:25:45 +0000 Subject: Support linking against libgcc_r. Submitted by: Luoqi Chen --- contrib/gcc/config/freebsd.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/gcc/config/freebsd.h b/contrib/gcc/config/freebsd.h index 9d07d5a..27becf4 100644 --- a/contrib/gcc/config/freebsd.h +++ b/contrib/gcc/config/freebsd.h @@ -1,3 +1,4 @@ +/* $Id$ */ /* Base configuration file for all FreeBSD targets. Copyright (C) 1999 Free Software Foundation, Inc. @@ -71,6 +72,11 @@ Boston, MA 02111-1307, USA. */ #undef LIB_SPEC #define LIB_SPEC "%{!shared:%{!pg:%{!pthread:%{!kthread:-lc}%{kthread:-lpthread -lc}}%{pthread:-lc_r}}%{pg:%{!pthread:%{!kthread:-lc_p}%{kthread:-lpthread_p -lc_p}}%{pthread:-lc_r_p}}}" +/* Let gcc locate this for us according to the -m rules */ +#undef LIBGCC_SPEC +#define LIBGCC_SPEC \ + "%{!shared:%{!pthread:%{!kthread:libgcc.a%s}}%{pthread|kthread:libgcc_r.a%s}}" + /* Code generation parameters. */ -- cgit v1.1