From: Thomas Petazzoni Date: Tue, 21 Dec 2010 12:49:37 +0000 (+0100) Subject: toolchain: fix multilib symlink for external toolchains X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd11bf49704ef6413ae303c6c774b5c6a4a62f9a;p=buildroot.git toolchain: fix multilib symlink for external toolchains ARCH_SUBDIR is a shell variable, so it should be referenced with $${ARCH_SUBDIR}. Without this, no symbolic link is created, and the external toolchain fails to work if the non-default multilib variant is used. Signed-off-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk index 9b37f3f6c5..eb9d7421d4 100644 --- a/toolchain/helpers.mk +++ b/toolchain/helpers.mk @@ -96,7 +96,7 @@ copy_toolchain_sysroot = \ if [ ! -d $${ARCH_SYSROOT_DIR}/usr/include ] ; then \ cp -a $${SYSROOT_DIR}/usr/include $(STAGING_DIR)/usr ; \ fi ; \ - ln -s . $(STAGING_DIR)/$(ARCH_SUBDIR) ; \ + ln -s . $(STAGING_DIR)/$${ARCH_SUBDIR} ; \ fi ; \ find $(STAGING_DIR) -type d | xargs chmod 755