This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc_version
- To: law at cygnus dot com
- Subject: Re: gcc_version
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Thu, 25 Jun 1998 08:13:09 +0200 (MET DST)
- Cc: egcs-patches at cygnus dot com
- References: <13704.46293.572266.946471@slsvhmt> <26146.898743153@hurl.cygnus.com>
- Reply-To: manfred at s-direktnet dot de, Manfred dot Hollstein at ks dot sel dot alcatel dot de
On Wed, 24 June 1998, 20:52:33, law@hurl.cygnus.com wrote:
>
> I think we've got some logic problems with this new code.
>
>
> I do something like:
>
> /puke/law/egcs.cygnus.com/egcs/configure
>
> topsrcdir is set to /puke/law/egcs.cygnus.com/egcs/..
>
> The trailing ".." is wrong. The net result is we do not find
> gcc/version.c and cc1, cc1plus, etc end up installed into the
> "UNKNOWN" directory because we didn't find gcc/version.c
Yes, Franz Sirl already pointed this out; I'm working on it.
>
> Worse yet the compiler is looking in "egcs-2.91.42" instead of
> "UNKNOWN".
>
> So, first I think we need to fix the toplevel configure to find the
> right topsrcdir.
>
> Second, gcc should be using the version # passed down from the toplevel
> configure instead of setting its own version #. This will avoid
> inconsistencies. (see version/mainversion in Makefile.in).
But, this would break, what Dave and Craig suggested: to be able to
call "make ..." directly in the subdir. I'd say, there's no easy way
round; either we'd have to emit all necessary macros in all generated
Makefiles (easy for Cygnus configure generated ones, but very bad for
autoconf ones - perhaps we could use the same --with-xyz hack...), or
we define them only once in the toplevel Makefile and pass them down.
As I'm beginning to like the ability to call "make ..." in the
subdirs, I'm trying to make the first one work.
>
> jeff
>
>
>
manfred