Fix buildroot not to modify Rules.mak. Patch From vapier.
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>
Thu, 30 Jun 2005 00:36:16 +0000 (00:36 -0000)
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>
Thu, 30 Jun 2005 00:36:16 +0000 (00:36 -0000)
toolchain/uClibc/uclibc.mk

index 873603d7d05142006af0059aa2a2dd278b9e31e4..a0988b5fdcb194a9019dde46ccc9879b494de608 100644 (file)
@@ -51,8 +51,8 @@ $(UCLIBC_DIR)/.unpacked: $(DL_DIR)/$(UCLIBC_SOURCE)
        touch $(UCLIBC_DIR)/.unpacked
 
 $(UCLIBC_DIR)/.configured: $(UCLIBC_DIR)/.unpacked
-       $(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(UCLIBC_DIR)/Rules.mak
        cp $(UCLIBC_CONFIG_FILE) $(UCLIBC_DIR)/.config
+       $(SED) 's,^CROSS_COMPILER_PREFIX=.*,CROSS_COMPILER_PREFIX="$(TARGET_CROSS)",g' $(UCLIBC_DIR)/.config \
        $(SED) 's,^.*TARGET_$(UCLIBC_TARGET_ARCH).*,TARGET_$(UCLIBC_TARGET_ARCH)=y,g' \
                $(UCLIBC_DIR)/.config
        $(SED) 's,^TARGET_ARCH.*,TARGET_ARCH=\"$(UCLIBC_TARGET_ARCH)\",g' $(UCLIBC_DIR)/.config