[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some DJGPP tweaks
From: |
Tim Van Holder |
Subject: |
Re: Some DJGPP tweaks |
Date: |
Thu, 28 Jun 2001 21:54:21 +0200 |
> I think the latter is best. Otherwise libtool would end up
> getting out of
> sync with the canonical release.
Okido. I'll try to spin a little patch tonight or tomorrow
morning.
> > But first this small one: not all systems have a working ln -s,
> > so don't even try it.
>
> I'm not sure even `cp -p' is optimally portable. Is there any
> reason why we
> can't try `ln -s' and fall back if it fails?
Yep. DJGPP (up until the to-be-released-some-time-in-the-future
2.04 release, which DOES support symlinks) has limited 'ln -s'
support. It will create an executable stub that will try to run
the given program.
So if you run 'ln -s X foo', you get 'foo.exe' (not 'foo'), which,
if run, will try to run 'X.exe'. So trying 'ln -s' is a bad idea
there - it will succeed, but won't have the desired result (cfr.
the check made by autoconf 2.50 to see if 'ln -s' works).
In any case, here the -p flag wouldn't even be required for cp, so
its portability isn't even an issue, I think. Using cp, ln or cat
is all fine - it's just 'ln -s' that has problems.
Or you could duplicate autoconf's test for ln -s and decide based
on that, but that seems overkill for a simple bootstrap.