From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Wed, 4 Jan 2012 09:24:03 +0100 Subject: [Buildroot] [PATCH 04/14] Support multilib variants in sub-subdirectories In-Reply-To: References: Message-ID: <20120104092403.7727719c@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Le Wed, 4 Jan 2012 08:55:51 +0100, Thomas De Schampheleire a ?crit : > Can we be sure that ARCH_SUBDIR never contains a trailing slash? > It comes from: > ARCH_SUBDIR=`$(TOOLCHAIN_EXTERNAL_CC) $(TOOLCHAIN_EXTERNAL_CFLAGS) > -print-multi-directory` Hum, it no longer comes from -print-multi-directory as per 03/14. ARCH_SUBDIR is computed as follows: + ARCH_SUBDIR=`echo $${ARCH_SYSROOT_DIR} | sed -r -e "s:^$${SYSROOT_DIR}(.*)/$$:\1:"` ; \ As you can see, the sed expression removes the trailing slash. Is this correct? Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com