Fix bzip2 cross build error associated with host ranlib being
author"Steven J. Hill" <sjhill@realitydiluted.com>
Wed, 18 May 2005 03:42:51 +0000 (03:42 -0000)
committer"Steven J. Hill" <sjhill@realitydiluted.com>
Wed, 18 May 2005 03:42:51 +0000 (03:42 -0000)
used instead of cross target ranlib.

package/Makefile.in
package/bzip2/bzip2.mk

index 9f282473cd52de4afb93bafac78d8ff8af506e7f..2e57524b48edbde7658c84f6c02742a599a70a8f 100644 (file)
@@ -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
 
index f74a3196c554f9e630bd813d39388ad1b4d7cb89..16a21fe1745ebabf2310327d60f2a4d10d08bb69 100644 (file)
@@ -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/