fix ccache builds of gmp (reverts [4458])
authorMike Baker <mbm@openwrt.org>
Fri, 4 Aug 2006 22:56:07 +0000 (22:56 +0000)
committerMike Baker <mbm@openwrt.org>
Fri, 4 Aug 2006 22:56:07 +0000 (22:56 +0000)
SVN-Revision: 4459

libs/gmp/Makefile

index 17c914cbb5fc33bcbd1028bb49dab2b714f163f2..a7f910ad43f40a24810d5311dbc75225ca208e4c 100644 (file)
@@ -31,15 +31,12 @@ define Package/libgmp
 endef
 
 define Build/Configure
-       echo "#!/bin/sh" > $(PKG_BUILD_DIR)/$(TARGET_CROSS)gcc
-       echo 'ccache $(STAGING_DIR)/bin/$(TARGET_CROSS)gcc "$$$$@"' > $(PKG_BUILD_DIR)/$(TARGET_CROSS)gcc
-       chmod 0755 $(PKG_BUILD_DIR)/$(TARGET_CROSS)gcc
        (cd $(PKG_BUILD_DIR); rm -f config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
+               CC="$(TARGET_CROSS)gcc" \
                CFLAGS="$(TARGET_CFLAGS)" \
                CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
                LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
-               CC="$(PKG_BUILD_DIR)/$(TARGET_CROSS)gcc" \
                ./configure \
                        --target=$(GNU_TARGET_NAME) \
                        --host=$(GNU_TARGET_NAME) \
@@ -69,6 +66,7 @@ define Build/Compile
        rm -rf $(PKG_INSTALL_DIR)
        mkdir -p $(PKG_INSTALL_DIR)
        $(MAKE) -C $(PKG_BUILD_DIR) \
+               CC="$(TARGET_CC)" \
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install
 endef