]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - fs/ubifs/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / fs / ubifs / Makefile
index 8328843fe12a0a52cc6246d1ca5bfa31a0ce48e2..ccffe85ee1fc4edde080a8d577780446ae31865c 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)libubifs.a
+LIB    = $(obj)libubifs.o
 
 COBJS-$(CONFIG_CMD_UBIFS) := ubifs.o io.o super.o sb.o master.o lpt.o
 COBJS-$(CONFIG_CMD_UBIFS) += lpt_commit.o scan.o lprops.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))
 
 #########################################################################