]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/net/Makefile
Switch from archive libraries to partial linking
[people/ms/u-boot.git] / drivers / net / Makefile
index 79eb66b26748f6b0bdcb51807e978321b6eecf04..5393955879363bc715d027366463e6a42a28a3a7 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    := $(obj)libnet.a
+LIB    := $(obj)libnet.o
 
 COBJS-$(CONFIG_DRIVER_3C589) += 3c589.o
 COBJS-$(CONFIG_PPC4xx_EMAC) += 4xx_enet.o
@@ -87,7 +87,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################