Source
xxxxxxxxxx
--- Makefile.lib.orig 2010-03-29 21:13:12.000000000 -0700
+++ Makefile.lib 2010-03-29 21:16:02.000000000 -0700
# Rule to compile a set of .o files into one .o file
quiet_cmd_ld_objs = " [$(LD_COLOR)LD$(END_COLOR)] $(RELPATH)$@"
- cmd_ld_objs = $(LD) -r -o $@ $(filter $(OBJS), $^) \
+ cmd_ld_objs = $(CC) @ARCHS@ -nostdlib -r -o $@ $(filter $(OBJS), $^) \
$(foreach subdir,$(sort $(filter-out src,$(SUBDIRS))), \
`test -e $(subdir)/$(LIB_O_NAME) && echo $(subdir)/$(LIB_O_NAME)`)