]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/sandburst/metrobox/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / sandburst / metrobox / Makefile
index eb149108ac5f43d1420b795045947e5bef951768..e98c9895ef7078a524500bff040239819a88d234 100644 (file)
@@ -37,7 +37,7 @@ CFLAGS += -DBUILDUSER='"$(BUILDUSER)"'
 # TBS: end debugging
 
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o ../common/flash.o ../common/ppc440gx_i2c.o \
        ../common/sb_common.o
@@ -48,7 +48,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)