]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* tests/defs (CC): Extract from the libtool script.
authorAlexandre Oliva <aoliva@redhat.com>
Sun, 3 Sep 2000 21:13:13 +0000 (21:13 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sun, 3 Sep 2000 21:13:13 +0000 (21:13 +0000)
* tests/link.test, tests/link-2.test, tests/quote.test: Use it.

ChangeLog
tests/defs
tests/link-2.test
tests/link.test
tests/quote.test

index 1f5187690c52cf8294b7ea5d9b950fbb10d20818..cb5a6c2cde5dda6abb984d20d99bbc636b4c86ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-09-03  Alexandre Oliva  <aoliva@redhat.com>
 
+       * tests/defs (CC): Extract from the libtool script.
+       * tests/link.test, tests/link-2.test, tests/quote.test: Use it.
+
        * ltmain.in (variables_saved_for_relink): Attempt to unset them
        instead of setting them to an empty string.
 
index 2aa752fd22bbd54c1eed23c3344d047edf2fd1f5..971091169f85b6bb61c57e2f5fd41cdfe700357e 100644 (file)
@@ -24,6 +24,9 @@ else
   prefix=NONE
 fi
 
+# Extract CC from the libtool configuration
+eval `$libtool --config | grep '^CC='`
+
 # See how redirections should work.
 case "$VERBOSE" in
 NO | no | 0 | "")
index 33e713d09db612935945a5f499f6d2944cbe9d12..55f360a2429b9bfdb549031be4a5967aaf83877e 100755 (executable)
@@ -18,7 +18,7 @@ non_pic_object=hell.o
 EOF
 
 # Try a sample link command.
-linkresult=`$libtool -n --mode=link gcc -o something foo.o hell.lo`
+linkresult=`$libtool -n --mode=link $CC -o something foo.o hell.lo`
 
 res=$?
 
index 5d1000bb0144787a99eb62cad430c901f443140c..4b208487c10e4ee1dcfe8fc70d1c8c7c7cac5604 100755 (executable)
@@ -11,7 +11,7 @@ fi
 . $srcdir/defs || exit 1
 
 # Try a sample link command.
-linkresult=`$libtool -n --mode=link gcc -o gettext ../lib/libnlsut.a`
+linkresult=`$libtool -n --mode=link $CC -o gettext ../lib/libnlsut.a`
 test $? -eq 0 || exit 1
 
 echo "$linkresult"
index f71ecda03c9756a2d35c0e1e8413e9968f6f8431..47a07e4f0cea93317f5e2e0301a168d13308a715 100755 (executable)
@@ -62,14 +62,14 @@ for mode in compile link install; do
   # preargs and postargs need to go through libtool unmodified.
   case "$mode" in
   compile)
-    preargs="gcc -c"
+    preargs="$CC -c"
     preflag=
     flag="-DVAR="
     postargs="foo.c"
     ;;
 
   link)
-    preargs="gcc -o hell -g -O"
+    preargs="$CC -o hell -g -O"
     preflag=-Wl,
     flag="-someflag="
     postargs="foo.o"