]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/avr32/cpu/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / arch / avr32 / cpu / Makefile
index 60899c79ea0b59c24fb3315412362a939afbb219..edb866f7f948a8c1d91e7b3c92a5e7ff08a051d7 100644 (file)
@@ -25,7 +25,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    := $(obj)lib$(CPU).a
+LIB    := $(obj)lib$(CPU).o
 
 START-y                        += start.o
 
@@ -44,7 +44,7 @@ START := $(addprefix $(obj),$(START-y))
 all: $(obj).depend $(START) $(LIB)
 
 $(LIB): $(OBJS)
-       $(AR) $(ARFLAGS) $@ $^
+       $(call cmd_link_o_target, $^)
 
 #########################################################################