This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Make warning for native build
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: gcc at gcc dot gnu dot org
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 17 Dec 2002 23:56:34 -0500
- Subject: Re: Make warning for native build
>> /me thinks BUILD_SUBDIR != TARGET_SUBDIR should always hold, so that
>> we use the newly build gcc to build libiberty for the target, even if
>> target == host == build. An easy way to accomplish this is to prefix
>> BUILD_SUBDIR with build-, always or when build_alias = target_alias.
>
>Good idea. I don't think we need to worry about host == build because
>they'd both be built with the system compiler anyway. But if
>build==host it should use ./libiberty, not ./$build/libiberty. The
>only time we would even have this conflict is if build != host and
>build == target, because that's the only time that build has a
>./$build subdirectory that matches ./$target.
>
>So if build==target and build!=host, then builddir="build-$build" ?
I like. :-) But how about making builddir="build-$build" always?
If build=host, those rules aren't activated anyway. When build!=host
and host==target, I don't see why we shouldn't give it this name; it's
no worse than the existing name. This allows a greater degree of
consistency.
--Nathanael