From 03939d53708cc9b885983f969c0b57d7a4791730 Mon Sep 17 00:00:00 2001 From: rsandifo Date: Thu, 29 Jun 2006 03:47:43 +0000 Subject: gcc/ * config/m68k/uclinux.h (LIB_SPEC): Allow -static-libc to suppress the linking of the shared C library. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/csl/coldfire-4_1@115065 138bc75d-0d04-0410-961f-82ee72b054a4 --- ChangeLog.csl | 6 ++++++ gcc/config/m68k/uclinux.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog.csl b/ChangeLog.csl index eb46498ad21..6fee11dc1cf 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,9 @@ +2006-06-28 Richard Sandiford + + gcc/ + * config/m68k/uclinux.h (LIB_SPEC): Allow -static-libc to suppress + the linking of the shared C library. + 2006-06-27 Richard Sandiford gcc/testsuite/ diff --git a/gcc/config/m68k/uclinux.h b/gcc/config/m68k/uclinux.h index 90e9101be8f..0ce0b307e40 100644 --- a/gcc/config/m68k/uclinux.h +++ b/gcc/config/m68k/uclinux.h @@ -33,7 +33,7 @@ Boston, MA 02110-1301, USA. */ profiling, or libg.a. */ #undef LIB_SPEC #define LIB_SPEC \ -"%{mid-shared-library:-R libc.gdb%s} -lc" +"%{mid-shared-library:%{!static-libc:-R libc.gdb%s}} -lc" /* Default to using -elf2flt with no options. */ #undef LINK_SPEC -- cgit v1.2.3