Fix bzip2 cross build error associated with host ranlib being
used instead of cross target ranlib.
This commit is contained in:
parent
09bb9d6228
commit
d5871cf8ad
@ -33,6 +33,7 @@ GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
|
||||
KERNEL_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
|
||||
TARGET_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
|
||||
TARGET_CC=$(TARGET_CROSS)gcc
|
||||
TARGET_RANLIB=$(TARGET_CROSS)ranlib
|
||||
STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
|
||||
INSTALL=/usr/bin/install
|
||||
|
||||
|
@ -31,9 +31,9 @@ endif
|
||||
|
||||
$(STAGING_DIR)/lib/libbz2.so.$(BZIP2_VER): $(BZIP2_DIR)/.unpacked
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(BZIP2_DIR) -f Makefile-libbz2_so
|
||||
$(MAKE) CC=$(TARGET_CC) RANLIB=$(TARGET_RANLIB) -C $(BZIP2_DIR) -f Makefile-libbz2_so
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(BZIP2_DIR) libbz2.a
|
||||
$(MAKE) CC=$(TARGET_CC) RANLIB=$(TARGET_RANLIB) -C $(BZIP2_DIR) libbz2.a
|
||||
cp $(BZIP2_DIR)/bzlib.h $(STAGING_DIR)/include/
|
||||
cp $(BZIP2_DIR)/libbz2.so.$(BZIP2_VER) $(STAGING_DIR)/lib/
|
||||
cp $(BZIP2_DIR)/libbz2.a $(STAGING_DIR)/lib/
|
||||
|
Loading…
Reference in New Issue
Block a user