From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Rae Date: Wed, 5 Nov 2014 11:36:52 -0800 Subject: [U-Boot] buildman: using wrong libgcc.a (magic -3) In-Reply-To: <20141105190902.847643833C7@gemini.denx.de> References: <54526E0F.5090500@broadcom.com> <5452A2A6.5000601@broadcom.com> <5452A643.6000309@myspectrum.nl> <545A707A.4090600@myspectrum.nl> <545A74E6.5010208@broadcom.com> <20141105190902.847643833C7@gemini.denx.de> Message-ID: <545A7C54.30204@broadcom.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 14-11-05 11:09 AM, Wolfgang Denk wrote: > Dear Steve, > > In message <545A74E6.5010208@broadcom.com> you wrote: >> >> In my experience, we would normally set the CROSS_COMPILE variable to >> the "prefix" of the cross compiler toolchain, for example: >> >> CROSS_COMPILE=/opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi/arm-linux-gnueabi- > > Actually we should have only > > CROSS_COMPILE=arm-linux-gnueabi- > > and make the PATH take care of where to pick the tools from. > > Best regards, > > Wolfgang Denk > Actually, that would be unfortunate, because I currently have: - /usr/bin/arm-linux-gnueabi-gcc - /opt/eldk-5.4/armv7a/sysroots/i686-eldk-linux/usr/bin/armv7a-vfp-neon-linux-gnueabi/arm-linux-gnueabi-gcc - (and others) installed on my machine.... If $PATH" was to "take care of it", then somehow $PATH would need to be constantly "rearranged" so that the desired compiler is selected correctly. IMO it would be best to specify the "absolute path to the prefix" completely, and not rely on PATH at all! Thanks, Steve