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