]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* tests/quote.test: Match link quoting against `"$wl"', not `-Wl,'.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 31 Jan 2005 17:25:49 +0000 (17:25 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 31 Jan 2005 17:25:49 +0000 (17:25 +0000)
ChangeLog
tests/quote.test

index 7d0710bc619097a5d19334439b94609afbbc9343..332df9f2495d95ff96d05f61d3877c904a19f5c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * tests/quote.test: Match link quoting against `"$wl"', not `-Wl,'.
+
        * tests/quote.test: Check for `--no-reexec' in $1 to avoid one reexec.
 
        * m4/libtool.m4 (_LT_COMPILER_C_O): _LT_TAGDECL(lt_compiler_c_o),
index 50b1646d557fba6e03ef7d700576a15a77d9aac3..7663eb0c2b0bc7cf14d98fe869ec4fc2d8a9b9e8 100755 (executable)
@@ -36,6 +36,7 @@ case $1 in
 esac
 
 func_get_config "ECHO" "../libtool --config"
+func_get_config "wl" "../libtool --config"
 
 for mode in compile link install; do
   $ECHO "== $mode mode"
@@ -49,6 +50,7 @@ for mode in compile link install; do
   compile)
     preargs="$CC -c"
     preflag=
+    match_preflag=
     flag="-DVAR="
     postargs="foo.c"
     ;;
@@ -56,6 +58,7 @@ for mode in compile link install; do
   link)
     preargs="$CC -o hell -g -O"
     preflag=-Wl,
+    match_preflag="$wl"
     flag="-someflag="
     postargs="foo.o"
     ;;
@@ -63,6 +66,7 @@ for mode in compile link install; do
   install)
     preargs="install -c"
     preflag=
+    match_preflag=
     flag="--something="
     postargs="hell /usr/local/bin/hell"
     ;;
@@ -77,7 +81,7 @@ for mode in compile link install; do
   # We must not attempt to match $preargs in the output, because libtool
   # may modify them.  For example, on Cygwin, ``libtool --mode=link gcc -o
   # foo foo.o''  becomes ``gcc -o foo.exe foo.o''.
-  match="${preflag}${flag}test "
+  match="${match_preflag}${flag}test "
   case "$result" in
   *"$match"*)
     $ECHO "= passed: $result"
@@ -92,7 +96,7 @@ for mode in compile link install; do
   for mchar in \\ \" \` \$; do
     $ECHO "= trying: \\$mchar quoting"
     result=`$LIBTOOL -n --mode=$mode $preargs ${preflag}"${flag}${mchar}test${mchar}" $postargs` || status=$EXIT_FAILURE
-    match="${preflag}${flag}\\${mchar}test\\${mchar} "
+    match="${match_preflag}${flag}\\${mchar}test\\${mchar} "
     case "$result" in
     *"$match"*)
       $ECHO "= passed: $result"
@@ -110,7 +114,7 @@ for mode in compile link install; do
 
     $ECHO "= trying: \"$mchar\" quoting"
     result=`$LIBTOOL -n --mode=$mode $preargs ${preflag}"${flag}${mchar}test${mchar}" $postargs` || status=$EXIT_FAILURE
-    match="${preflag}\"${flag}${mchar}test${mchar}\" "
+    match="${match_preflag}\"${flag}${mchar}test${mchar}\" "
     case "$result" in
     *"$match"*)
       $ECHO "= passed: $result"