This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC vs. `make' on Solaris
- To: mark at codesourcery dot com (Mark Mitchell)
- Subject: Re: GCC vs. `make' on Solaris
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Fri, 11 May 2001 15:08:26 -0700 (PDT)
- Cc: gcc at gcc dot gnu dot org
[ Solaris timestamp problem ]
> There are a lot of possible solutions:
>
> 1. Use `echo' or `cat' in place of `touch' to avoid the bug.
> In other words, use:
>
> rm -f s-foo && echo > s-foo
>
> This works because `creat' works; it's just `utime' that's
> broken.
I suggest doing it roughly this way, assuming it will cure the problem.
But it can be done more cleanly.
Turn uses of "touch" into $(TOUCH), which is normally "touch" but
can be something else on systems with this bug.
> 2. Get rid of all this use of stamp files.
Well, you could do it that way, but it is a much more major change.
And there may be other uses of touch that could still mess us up.