This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: still problem building cross-compiler, x86 -> solaris2.8
- From: Richard Henderson <rth at redhat dot com>
- To: Per Fransson <per dot fransson dot 768 at student dot lu dot se>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 9 Apr 2002 14:08:23 -0700
- Subject: Re: still problem building cross-compiler, x86 -> solaris2.8
- References: <3CB35760.7040007@student.lu.se>
On Tue, Apr 09, 2002 at 11:04:32PM +0200, Per Fransson wrote:
> How is it supposed to tell them apart if it needs both sets of binutils?
NM_FOR_TARGET = ` \
if [ -f ./nm ] ; then \
echo ./nm ; \
elif [ -f $(objdir)/../binutils/nm-new ] ; then \
echo $(objdir)/../binutils/nm-new ; \
else \
if [ "$(host_canonical)" = "$(target)" ] ; then \
echo nm; \
else \
t='$(program_transform_cross_name)'; echo nm | sed -e $$t ; \
fi; \
fi`
So: gcc expects the thing to be called either sparc-sun-solaris2.7-nm
or you should build inside a single tree so that it's present in
../binutils/.
r~