From b9acdd0d23db394b11119a001fb06f85f490ce01 Mon Sep 17 00:00:00 2001 From: kan Date: Sat, 19 May 2007 16:38:39 +0000 Subject: Use LDADD to add -lgcc to the end of linker command line. Using LDFLAGS puts it before library's object files, making the whole constuct useless. --- lib/libc/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libc/Makefile b/lib/libc/Makefile index 4c2e868..4f107ee 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -23,7 +23,8 @@ PRECIOUSLIB= # # Only link with static libgcc.a (no libgcc_eh.a). # -LDFLAGS+= -nodefaultlibs -lgcc +LDFLAGS+= -nodefaultlibs +LDADD+= -lgcc # Define (empty) variables so that make doesn't give substitution # errors if the included makefiles don't change these: -- cgit v1.1