On 08/02/2010 07:55 PM, Ralf Wildenhues wrote:
* Charles Wilson wrote on Sun, Aug 01, 2010 at 10:04:16PM CEST:
support, use --prefix=/mingw + DESTDIR=/the-sysroot.
What about the w32 users that use --prefix=C:/mingw and then cannot use
DESTDIR because that will not concatenate?
Also, in 'ln -sf' in the testsuite addition, the -f is non-portable
to Solaris, and for DJGPP (cough) it would even need $(LN_S) but let's
ignore that for now.
I'm squashing this:
diff --git a/tests/sysroot.at b/tests/sysroot.at
index 0d98990..850e0cd 100644
--- a/tests/sysroot.at
+++ b/tests/sysroot.at
@@ -58,7 +58,9 @@ AT_CHECK([
while read file; do
dir=`local_dirname "$sysroot/$file"`
test -d "$dir" || mkdir -p "$dir"
- ln -sf "$gcc_sysroot/$file" "$sysroot/$file"
+ rm -f "$sysroot/$file"
+ ln -s "$gcc_sysroot/$file" "$sysroot/$file" || \
+ cp "$gcc_sysroot/$file" "$sysroot/$file"
done])
LDFLAGS="$LDFLAGS --sysroot=$sysroot -no-undefined"