]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/sh/cpu/sh4/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / arch / sh / cpu / sh4 / Makefile
index 3c96a49311f0471131d20a4b4a44186f4e34b5d7..ba84de39fb84e4f8b33daf383032ce70e5bee934 100644 (file)
@@ -26,7 +26,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(CPU).a
+LIB    = $(obj)lib$(CPU).o
 
 SOBJS  = start.o
 COBJS  = cpu.o interrupts.o watchdog.o cache.o
@@ -36,7 +36,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)