]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/mips/lib/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / arch / mips / lib / Makefile
index 7967e5803a3be283c3093dd662a69a6e7e076d43..4e90704425aadb30b463dcce6420662007bd865e 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(ARCH).a
+LIB    = $(obj)lib$(ARCH).o
 
 SOBJS-y        +=
 
@@ -39,7 +39,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))
 
 #########################################################################