This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Hard-link to in-tree tools
- From: Daniel Jacobowitz <drow at false dot org>
- To: DJ Delorie <dj at redhat dot com>
- Cc: paolo dot bonzini at lu dot unisi dot ch, gcc-patches at gcc dot gnu dot org,neroden at twcny dot rr dot com
- Date: Mon, 16 May 2005 14:11:57 -0400
- Subject: Re: [PATCH] Hard-link to in-tree tools
- References: <4288D0D6.firstname.lastname@example.org> <200505161807.j4GI70k7023922@greed.delorie.com>
On Mon, May 16, 2005 at 02:07:00PM -0400, DJ Delorie wrote:
> Note that some platforms cannot hard link, and will use "cp" instead
> (windows and dos builds support soft links but not hard links). That
> will break a build with your change, since the file may not exist when
> you try to link it, and even if it did, there are no dependencies to
> update the binary when it's original is rebuilt.
> If it were done instead with Makefile rules, instead of configure.ac,
> it would probably be safe.
The binary has to already exist - that's the whole point of the patch
to Makefile.tpl. Note that this was already a requirement; $LN_S can
use ln or cp if symlinks are unavailable.
I have no idea how to do this in the Makefile. The conditions under
which we do it are seriously arcane. I suppose it could be done with