]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/sh/cpu/sh3/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / arch / sh / cpu / sh3 / Makefile
index 35e8f51ab1540159727d1edef6ba0358f877237d..d51b07c65528599382ec3b40a6748fbad4db41ec 100644 (file)
@@ -29,7 +29,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
@@ -39,7 +39,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)