diff options
author | obrien <obrien@FreeBSD.org> | 1999-04-14 00:25:45 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-04-14 00:25:45 +0000 |
commit | 9163a26c66b6d4d84f50f95afc5b41040fdcadf8 (patch) | |
tree | d1f856f5eec50813fd285994b2fcc26f42fcaa18 /contrib/gcc/config/freebsd.h | |
parent | 52bb7ceaf6e4d25b20e27c90e530c197158ff896 (diff) | |
download | FreeBSD-src-9163a26c66b6d4d84f50f95afc5b41040fdcadf8.zip FreeBSD-src-9163a26c66b6d4d84f50f95afc5b41040fdcadf8.tar.gz |
Support linking against libgcc_r.
Submitted by: Luoqi Chen <luoqi@chen.ml.org>
Diffstat (limited to 'contrib/gcc/config/freebsd.h')
-rw-r--r-- | contrib/gcc/config/freebsd.h | 6 |
1 files changed, 6 insertions, 0 deletions
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. */ |