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