-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 19.06.2013 13:55, Corinna Vinschen wrote:
> On Jun 19 13:32, LRN wrote:
>> On 19.06.2013 12:57, Corinna Vinschen wrote:
>>> On Jun 19 12:08, LRN wrote:
>>>> To be fair here, i've tried the MSYS=winsymlinks:nativestrict, and first
>>>> thing i hit was AC_PROG_LN_S. That macro explicitly refuses to use `ln
>>>> - -s' provided by MSYS or Cygwin, asking for 100% POSIX compliance.
>>>
>>> On Cygwin? Not that I'm aware of. I tested the AC_PROG_LN_S macro
>>> on Cygwin and the LN_S setting is 'ls -s' afterwards. That's with
>>> autoconf-2.69.
>>
>> My mistake, i meant _AS_LN_S_PREPARE, not AC_PROG_LN_S.
>
> _AS_LN_S_PREPARE also yields `ln -s' on Cygwin. Just tested.
It shouldn't. Probably. I think.
It (is/should be) impossible to create an NTFS symlink to non-existing
target in Cygwin or MSys (since the target must exist to be able to
create an link of the right type).
Are you sure that your _AS_LN_S_PREPARE does this:
# _AS_LN_S_PREPARE
# ----------------
# Don't use conftest.sym to avoid file name issues on DJGPP, where this
# would yield conftest.sym.exe for DJGPP < 2.04. And don't use `conftest'
# as base name to avoid prohibiting concurrency (e.g., concurrent
# config.statuses). On read-only media, assume 'cp -pR' and hope we
# are just running --help anyway.
m4_defun([_AS_LN_S_PREPARE],
[rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
rm -f conf$$.dir/conf$$.file
else
rm -f conf$$.dir
mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
if ln -s conf$$.file conf$$ 2>/dev/null; then
as_ln_s='ln -s'
# ... but there are two gotchas:
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
# In both cases, we have to default to `cp -pR'.
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
as_ln_s='cp -pR'
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -pR'
fi
else
as_ln_s='cp -pR'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null
])# _AS_LN_S_PREPARE
and that you're using winsymlinks:nativestrict? Otherwise it's difficult
for me to imagine how it would work for you.
Note that here it tries to create a symlink that points to itself. I
know, because i've tried on my Debian machine.
>
>>> What about leaving the symlink(2) function alone and rather just replace
>>> the ln(1) tool with a wrapper which calls cp(1) in case of the -s option
>>> instead, some ln.orig.exe otherwise?
>>
>> No idea. Any proposal will have to be tested first. Alexey just gave me
>> a new snapshot, i'll test nativestrict there, and then we'll see.
>
> Btw., I've created a snapshot immediately after I had applied my patch.
> If you're not chilled by a Cygwin install, you can test this stuff
> quicker.
The mere thought of installing Cygwin on my machine sends shivers
through my spine. I'll keep using MSYS2 for now. Maybe later, when i
gather enough courage...After all, someone will have to check if there's
any performance gain in using MSys over cross-compiling from Cygwin.
P.S. Hopefully, mingw-w64 users are not annoyed by our slightly
off-topic discussion.
- --
O< ascii ribbon - stop html email! - www.asciiribbon.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
iQEcBAEBAgAGBQJRwYeuAAoJEOs4Jb6SI2Cwqz0H/0iIQP5XwA/1PPrac63sqrRa
LQvOUE7l0XILQhgUWxEus4I3tOd8NS6V1Qi4j24p8wxo1ZY8R3GlMll6FzL9WW5o
ZvSAq3p3TyFcnwRxmhob6QOKc571dJiMtVhHZthHqRWZ6McF04NsF0nGlDmUqyi8
5Vwv7X5gFb/v6/3+ajnS0Wa+TbfoLJJguFoe1uaYSbujFq/MN8JRYXNr396yXeUL
xJnTu3tGHNs3pslkmNjwDbMyBsMr1ckRKAi/sbqiHdVZ1pDCSsWqKfo221Pv4wm1
Ysg/T+UZHNT60kRHqa/8UQ0S1BbIxvNsC0CfNQ+/qb2phYaJE/IDiCXmoVNdsos=
=hQNL
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public