This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: configuration patch for host_exeext != ""
- To: Mumit Khan <khan at xraylith dot wisc dot edu>
- Subject: Re: configuration patch for host_exeext != ""
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Wed, 10 Feb 1999 23:06:37 -0700
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <9902081752.AA25339@brahma.xraylith.wisc.edu>you write:
>
> The current configuration has become way too complex for me to comprehend,
> so I'm going for the easiest fix.
>
> If exeext != "", the target libraries are not built right now since the
> target library configure scripts check for cc1, f771 etc without bothering
> to check for host file extensions. This shows up when cross-compiling for
> various win32 targets.
>
> There are two obvious fixes:
> * Fix the target library configure.in to check for host extensions and
> add that when checking if the compiler has been built or not.
> * Hope that the build host has symbolic link and link the cc1$(exeext)
> etc to the name without any extensions.
>
> Here's the latter fix. It looks and smells like a hack, so please suggest
> a better one.
I think the former fix is better. All we have to do is get the right value of
$(exeext) to the target library subdir configures (famous last words), then
tack it onto "compiler_name" in each one.
jeff