]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/i386/cpu/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / arch / i386 / cpu / Makefile
index bb0a48f8643582a1afc12c774388d4a10a5151c5..ddde83c91de61111e3f039db1512d6ce4255694b 100644 (file)
@@ -26,7 +26,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(CPU).a
+LIB    = $(obj)lib$(CPU).o
 
 START  = start.o start16.o resetvec.o
 COBJS  = interrupts.o cpu.o
@@ -38,7 +38,7 @@ START := $(addprefix $(obj),$(START))
 all:   $(obj).depend $(START) $(LIB)
 
 $(LIB):        $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################