libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFT PATCH v4 0/8] Sysroot series


From: Paolo Bonzini
Subject: Re: [RFT PATCH v4 0/8] Sysroot series
Date: Tue, 03 Aug 2010 09:51:18 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Thunderbird/3.0.5

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"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]