This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH to provide $(libsubdir) to sub-makes (was: Re: How to get top-level library installed in lib/gcc-lib/...?)


>On Sat, 13 June 1998, 03:34:48, burley@gnu.org wrote:
>
> > Hopefully someone will improve the top-level Makefile to pass down
> > the appropriate version and target_alias information soon.  I would
> > think the top-level directory should really have its own version.c
> > file that is "superior" to the one in the gcc/ directory, and
> > related infrastructure modified accordingly, but don't know enough
> > to be sure, or suggest much about how it should be done, certainly
> > not enough to submit any patches....
> > 
> >         tq vm, (burley)
>
>OK, here it is. The toplevel Makefile will contain the following new
>macros:
>
>  gcc_version and
>  libsubdir
>
>BASE_FLAGS_TO_PASS will pass them down to sub-makes along with
>target_alias. My patch will not change, where e.g. libstdc++.{a,so}
>will be installed, but as I've indicated long time ago, I'd actually
>prefer them to be installed in ${libsubdir}, too. Tomorrow I'll send a 
>separate patch for that.
>
>As a side-effect I've changed the various mkdir statements to create
>the various subdirectories down to $(libsubdir) to use a for loop
>instead.
>
>top-level ChangeLog:
>
>1998-06-15  Manfred Hollstein  <manfred@s-direktnet.de>
>
>	* configure (gcc_version): Add new variable describing the
>	particular gcc version we're building.
>	* Makefile.in (libsubdir): Add new macro for the directory
>	in which the compiler finds executables, libraries, etc.
>	(BASE_FLAGS_TO_PASS): Pass down gcc_version, target_alias
>	and libsubdir.
>
>gcc ChangeLog:
>
>1998-06-15  Manfred Hollstein  <manfred@s-direktnet.de>
>
>	* Makefile.in (version): Initialize using passed down value of new
>	macro "gcc_version".
>	(installdirs): Loop over directories in $(libsubdir) creating probably
>	missing ones, instead of single if statements.
>	* configure.in (version): Remove definition; do not AC_SUBST(version);
>	do not emit definition into config.status.
>	* configure: Regenerate.
>	* configure.lang (version): Remove sed pattern.
>
>OK to install?

IMO, yes.  I've just verified that `make install' properly installs
my modified version of egcs/libf2c, which would otherwise reject
the attempt with a diagnostic about $(libsubdir) not being defined.

(Dave Love should be installing my patches for egcs/libf2c soon,
if he hasn't already; presumably not in time for the snapshot,
though.  He has CVS access; I don't, yet.)

Thanks for doing this!!

        tq vm, (burley)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]