]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/sh/cpu/sh2/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / arch / sh / cpu / sh2 / Makefile
index 346d3285dbc3d6e830f2385fe7e33a9c8c708867..a36f0c3c3c1b7547711bc8e301e93a0257f2a2bd 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
@@ -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)