X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=arch%2Fsh%2Fcpu%2Fsh2%2FMakefile;h=a36f0c3c3c1b7547711bc8e301e93a0257f2a2bd;hb=6d8962e814c15807dd6ac5757904be2a02d187b8;hp=346d3285dbc3d6e830f2385fe7e33a9c8c708867;hpb=d7b1970015e62d37b26bb6b94b64ae36728c63cc;p=people%2Fms%2Fu-boot.git diff --git a/arch/sh/cpu/sh2/Makefile b/arch/sh/cpu/sh2/Makefile index 346d3285db..a36f0c3c3c 100644 --- a/arch/sh/cpu/sh2/Makefile +++ b/arch/sh/cpu/sh2/Makefile @@ -26,7 +26,7 @@ include $(TOPDIR)/config.mk -LIB = $(obj)lib$(CPU).a +LIB = $(obj)lib$(CPU).o SOBJS = start.o COBJS = cpu.o interrupts.o watchdog.o @@ -36,7 +36,7 @@ OBJS := $(addprefix $(obj),$(COBJS)) SOBJS := $(addprefix $(obj),$(SOBJS)) $(LIB): $(OBJS) $(SOBJS) - $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS) + $(call cmd_link_o_target, $(OBJS) $(SOBJS)) clean: rm -f $(SOBJS) $(OBJS)