]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/zpc1900/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / zpc1900 / Makefile
index dc40d9b94a6dd89e249b38cbfa6e5b830fc11afd..9079aad8566d16e67b56e0a6b800bdb8a1a9c8c5 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := $(BOARD).o
 
@@ -32,7 +32,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)