From 29937388fd372bc2e36a5dd317deea526fee4812 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Wed, 14 Dec 2011 21:59:51 +0000 Subject: libucl: allow cross compiling via CROSS as well. This will become necessary when cross compiling from other Makefiles without additionally passing the cross linker. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31258 a1c6a512-1295-4272-9138-f99709370657 --- tools/ucl/src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ucl/src/Makefile b/tools/ucl/src/Makefile index 33972bb617..06399822b4 100644 --- a/tools/ucl/src/Makefile +++ b/tools/ucl/src/Makefile @@ -33,12 +33,12 @@ libucl$(RBARCH).a: $(TARGET_DIR)libucl$(RBARCH).a $(TARGET_DIR)libucl$(RBARCH).a: $(OBJS) @echo AR $(notdir $@) - $(SILENT)$(AR) rucs $@ $(OBJS) >/dev/null 2>&1 + $(SILENT)$(CROSS)$(AR) rucs $@ $(OBJS) >/dev/null 2>&1 $(OBJDIR)/%.o: %.c @echo CC $< $(SILENT)mkdir -p $(dir $@) - $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ + $(SILENT)$(CROSS)$(CC) $(CFLAGS) -c $< -o $@ # some trickery to build ppc and i386 from a single call ifeq ($(RBARCH),) -- cgit v1.2.3