]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/i386/lib/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / arch / i386 / lib / Makefile
index 9838506689c079beb4466b349d639b69dd60da86..71e94f76f37d9e60df3fbd525e3c40bc03d33117 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(ARCH).a
+LIB    = $(obj)lib$(ARCH).o
 
 SOBJS-y        += bios.o
 SOBJS-y        += bios_pci.o
@@ -47,7 +47,7 @@ SRCS  := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################