]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - fs/ext2/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / fs / ext2 / Makefile
index 712e348395bed3108fbc75cdff78e04b169b842b..3c65d252f582cb597754e7dfd5e6032a65453236 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)libext2fs.a
+LIB    = $(obj)libext2fs.o
 
 AOBJS  =
 COBJS-$(CONFIG_CMD_EXT2) := ext2fs.o dev.o
@@ -40,7 +40,7 @@ OBJS  := $(addprefix $(obj),$(AOBJS) $(COBJS-y))
 all:   $(LIB) $(AOBJS)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################