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
This commit is contained in:
Dominik Riebeling 2011-12-14 21:59:51 +00:00
parent b24e562061
commit 29937388fd

View file

@ -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),)