]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/sh/lib/Makefile
Switch from archive libraries to partial linking
[people/ms/u-boot.git] / arch / sh / lib / Makefile
index f7c6479426d74458108d442baa55a01e313c3adf..7f6039699dafadbb675e04a0e402d5ba473305aa 100644 (file)
@@ -20,7 +20,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(ARCH).a
+LIB    = $(obj)lib$(ARCH).o
 
 SOBJS-y        +=
 
@@ -36,7 +36,7 @@ SRCS  := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################