From babe0719d6194f6424ef45cf454eb03141c42eea Mon Sep 17 00:00:00 2001 From: kan Date: Sat, 19 May 2007 04:32:56 +0000 Subject: Make sure GCC will not try to link libc with itself. --- lib/libc/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 5c7848f..4c2e868 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -20,6 +20,11 @@ CLEANFILES+=tags INSTALL_PIC_ARCHIVE= PRECIOUSLIB= +# +# Only link with static libgcc.a (no libgcc_eh.a). +# +LDFLAGS+= -nodefaultlibs -lgcc + # Define (empty) variables so that make doesn't give substitution # errors if the included makefiles don't change these: MDSRCS= -- cgit v1.1