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:
parent
b24e562061
commit
29937388fd
1 changed files with 2 additions and 2 deletions
|
@ -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),)
|
||||
|
|
Loading…
Reference in a new issue