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] Hard-link to in-tree tools


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

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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