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]
Other format: [Raw text]

Re: PATCH to toplevel Makefile.tpl


Hi,

DJ Delorie <dj at redhat dot com> writes:

>> The autoconf folks appear to have "solved" this by deprecating
>> config.cache: it defaults to /dev/null in configure scripts
>> generated by newer autoconfs.
>
> That doesn't help us; we explicitly specify the cache (so that it can
> be shared).

I think it may be cleaner to move that from the toplevel configure.in
to Makefile.tpl.  Then, it could invoke the subdir configure as

  configure-host-foo:
    cd foo ; \
    ... ; \
    cp ../config.cache config.cache ; \
    $$libsrcdir/configure --cache-file=config.cache ... ; \
    $$topsrcdir/install-sh config.cache ../config.cache

or

  configure-host-foo:
    cd foo ; \
    ... ; \
    while ! mv -f ../config.cache config.cache > /dev/null 2>&1; do sleep 1; done; \
    $$libsrcdir/configure --cache-file=config.cache ... ; \
    mv config.cache ../config.cache

depending on how much parallelism/sharing you want.

- Hari
-- 
Raja R Harinath ------------------------------ harinath at cs dot umn dot edu


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