* tests/link.test, tests/link-2.test, tests/quote.test: Use it.
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.
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 | "")
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=$?
. $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"
# 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"