summaryrefslogtreecommitdiff
path: root/arch/nios2/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nios2/lib/Makefile')
-rw-r--r--arch/nios2/lib/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/nios2/lib/Makefile b/arch/nios2/lib/Makefile
index 92320c5e466..443f99ee158 100644
--- a/arch/nios2/lib/Makefile
+++ b/arch/nios2/lib/Makefile
@@ -23,7 +23,7 @@
include $(TOPDIR)/config.mk
-LIB = $(obj)lib$(ARCH).a
+LIB = $(obj)lib$(ARCH).o
SOBJS-y += cache.o
@@ -36,7 +36,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))
#########################################################################