summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/Makefile.inc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-14 16:01:07 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-14 16:01:07 +0100
commitf63cba07f3a65fe0b574ac64e0b3d33ea753e2da (patch)
tree34f53835491b3d4bc26e12e5dccea35a6ea3ec28 /src/target/firmware/Makefile.inc
parented9b34047c44c305e8033a0805bd448eb0f0dfce (diff)
Makefile.inc: Use the right $(AR) command for the target
Reported on the mailinglist, proposed by Sylvain Munaut.
Diffstat (limited to 'src/target/firmware/Makefile.inc')
-rw-r--r--src/target/firmware/Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/firmware/Makefile.inc b/src/target/firmware/Makefile.inc
index 4d3a80b0..ed12e038 100644
--- a/src/target/firmware/Makefile.inc
+++ b/src/target/firmware/Makefile.inc
@@ -115,7 +115,7 @@ $(1)_OBJS:=$$($(1)_SRCS_REL:.c=.o)
$(1)_OBJS:=$$($(1)_OBJS:.S=.o)
$$($(1)_DIR)/lib$(1).a: $$($(1)_OBJS)
- $(AR) cru $$($(1)_DIR)/lib$(1).a $$($(1)_OBJS)
+ $(CROSS_COMPILE)$(AR) cru $$($(1)_DIR)/lib$(1).a $$($(1)_OBJS)
ALL_LIBS+=$$($(1)_DIR)/lib$(1).a