diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-12-14 21:59:51 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-12-14 21:59:51 +0000 |
commit | 29937388fd372bc2e36a5dd317deea526fee4812 (patch) | |
tree | 2ce25cb102da62d2c2eea12649730d68ced46788 /tools | |
parent | b24e562061213cae3a40625e3423572fb58a2d83 (diff) | |
download | rockbox-29937388fd372bc2e36a5dd317deea526fee4812.tar.gz 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')
-rw-r--r-- | tools/ucl/src/Makefile | 4 |
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 | |||
33 | 33 | ||
34 | $(TARGET_DIR)libucl$(RBARCH).a: $(OBJS) | 34 | $(TARGET_DIR)libucl$(RBARCH).a: $(OBJS) |
35 | @echo AR $(notdir $@) | 35 | @echo AR $(notdir $@) |
36 | $(SILENT)$(AR) rucs $@ $(OBJS) >/dev/null 2>&1 | 36 | $(SILENT)$(CROSS)$(AR) rucs $@ $(OBJS) >/dev/null 2>&1 |
37 | 37 | ||
38 | $(OBJDIR)/%.o: %.c | 38 | $(OBJDIR)/%.o: %.c |
39 | @echo CC $< | 39 | @echo CC $< |
40 | $(SILENT)mkdir -p $(dir $@) | 40 | $(SILENT)mkdir -p $(dir $@) |
41 | $(SILENT)$(CC) $(CFLAGS) -c $< -o $@ | 41 | $(SILENT)$(CROSS)$(CC) $(CFLAGS) -c $< -o $@ |
42 | 42 | ||
43 | # some trickery to build ppc and i386 from a single call | 43 | # some trickery to build ppc and i386 from a single call |
44 | ifeq ($(RBARCH),) | 44 | ifeq ($(RBARCH),) |