]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / common / Makefile
index 2c3707308be78ea225f12d8cd7af45853497b6bb..e0db38264c27c49013af3ac5ff24fc97712a2326 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)libcommon.a
+LIB    = $(obj)libcommon.o
 
 AOBJS  =
 
@@ -177,7 +177,7 @@ CPPFLAGS += -I..
 all:   $(LIB) $(AOBJS)
 
 $(LIB): $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 $(obj)env_embedded.o: $(src)env_embedded.c $(obj)../tools/envcrc
        $(CC) $(AFLAGS) -Wa,--no-warn \