aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar "Steven J. Hill" <sjhill@realitydiluted.com>2005-05-18 03:42:51 +0000
committerGravatar "Steven J. Hill" <sjhill@realitydiluted.com>2005-05-18 03:42:51 +0000
commitd5871cf8ad0bfc2300f58f620e82af90503af618 (patch)
treea813b190cc396510ab5c93c272cdbcbfffd7efc8
parent09bb9d622862839ef281142aee7b4837bb0153d4 (diff)
downloadbuildroot-d5871cf8ad0bfc2300f58f620e82af90503af618.tar.gz
buildroot-d5871cf8ad0bfc2300f58f620e82af90503af618.tar.bz2
Fix bzip2 cross build error associated with host ranlib being
used instead of cross target ranlib.
-rw-r--r--package/Makefile.in1
-rw-r--r--package/bzip2/bzip2.mk4
2 files changed, 3 insertions, 2 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index 9f282473cd..2e57524b48 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -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
diff --git a/package/bzip2/bzip2.mk b/package/bzip2/bzip2.mk
index f74a3196c5..16a21fe174 100644
--- a/package/bzip2/bzip2.mk
+++ b/package/bzip2/bzip2.mk
@@ -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/