]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/sparc/cpu/leon2/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / arch / sparc / cpu / leon2 / Makefile
index 91dc96794d2a7ef287d8127b19548d351cde20fb..a9a18eb1ff2d0cb6a3437f88de886f97dbff0c72 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(CPU).a
+LIB    = $(obj)lib$(CPU).o
 
 START  = start.o
 SOBJS  =
@@ -36,7 +36,7 @@ START := $(addprefix $(obj),$(START))
 all:   $(obj).depend $(START) $(LIB)
 
 $(LIB):        $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################