summaryrefslogtreecommitdiffstats
path: root/tools/ucl/src
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-14 21:59:51 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-14 21:59:51 +0000
commit29937388fd372bc2e36a5dd317deea526fee4812 (patch)
tree2ce25cb102da62d2c2eea12649730d68ced46788 /tools/ucl/src
parentb24e562061213cae3a40625e3423572fb58a2d83 (diff)
downloadrockbox-29937388fd372bc2e36a5dd317deea526fee4812.tar.gz
rockbox-29937388fd372bc2e36a5dd317deea526fee4812.tar.bz2
rockbox-29937388fd372bc2e36a5dd317deea526fee4812.zip
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
Diffstat (limited to 'tools/ucl/src')
-rw-r--r--tools/ucl/src/Makefile4
1 files 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),)