]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib/libfdt/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / lib / libfdt / Makefile
index d6e283045f6bbeb430c8d41a2b4072816b6875c1..c965577dc093e7a21325b9e37b74ab9ebdb7645e 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)libfdt.a
+LIB    = $(obj)libfdt.o
 
 SOBJS  =
 
@@ -38,7 +38,7 @@ SRCS  := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################