Use target ar & ranlib when generating static archives, the host tools were being...
authorNigel Kukard <nkukard@lbsd.net>
Sun, 4 Jan 2009 06:04:50 +0000 (06:04 -0000)
committerNigel Kukard <nkukard@lbsd.net>
Sun, 4 Jan 2009 06:04:50 +0000 (06:04 -0000)
package/libtool/libtool.mk

index 85e2d5b47f5b74cd4a59532c3e293667665b0457..b70c1c391a7adcb0e47324ffc59f82650a0811b1 100644 (file)
@@ -56,7 +56,7 @@ $(LIBTOOL_DIR)/.configured: $(LIBTOOL_SRC_DIR)/.unpacked
        touch $@
 
 $(LIBTOOL_DIR)/$(LIBTOOL_BINARY): $(LIBTOOL_DIR)/.configured
-       $(MAKE) CC=$(TARGET_CC) -C $(LIBTOOL_DIR)
+       $(MAKE) CC=$(TARGET_CC) RANLIB=$(TARGET_RANLIB) AR=$(TARGET_AR) -C $(LIBTOOL_DIR)
        touch -c $@
 
 $(TARGET_DIR)/$(LIBTOOL_TARGET_BINARY): $(LIBTOOL_DIR)/$(LIBTOOL_BINARY)
@@ -90,7 +90,7 @@ endif
 libtool: uclibc $(TARGET_DIR)/$(LIBTOOL_TARGET_BINARY)
 
 libtool-clean:
-       -$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(LIBTOOL_DIR) uninstall
+       -$(MAKE) DESTDIR=$(TARGET_DIR) -C $(LIBTOOL_DIR) uninstall
        -$(MAKE) -C $(LIBTOOL_DIR) clean
 
 libtool-cross: uclibc $(LIBTOOL_DIR)/$(LIBTOOL_BINARY)