This is the mail archive of the gcc@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: GCC vs. `make' on Solaris


[ 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.


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