]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/sparc/lib/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / arch / sparc / lib / Makefile
index 040ca10d3b3bfbbdb6f7b552b241044949f21d31..7133ef1015d39a1b131335a372b7ab23fa472466 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(ARCH).a
+LIB    = $(obj)lib$(ARCH).o
 
 SOBJS  =
 
@@ -33,7 +33,7 @@ SRCS  := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################