2000-09-02 Alexandre Oliva <aoliva@redhat.com>
+ * tests/link-2.test: Create hell.lo in the format expected by
+ libtool.
+
* ltcf-c.sh, ltcf-cxx.sh, ltcf-gcj.sh (archive_cmds,
archive_expsym_cmds) : Use compiler_flags instead of linker flags
when $CC is used for linking.
fi
. $srcdir/defs || exit 1
+rm -f hell.lo
+cat > hell.lo <<EOF
+# Generated by libtool
+pic_object=none
+non_pic_object=hell.o
+EOF
+
# Try a sample link command.
linkresult=`$libtool -n --mode=link gcc -o something foo.o hell.lo`
-test $? -eq 0 || exit 1
+res=$?
+
+rm -f hell.lo
+
+test $res -eq 0 || exit 1
echo "$linkresult"
case "$linkresult" in