]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* tests/link-2.test: Create hell.lo in the format expected by
authorAlexandre Oliva <aoliva@redhat.com>
Sat, 2 Sep 2000 23:37:10 +0000 (23:37 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sat, 2 Sep 2000 23:37:10 +0000 (23:37 +0000)
libtool.

ChangeLog
tests/link-2.test

index fa8fc77421bc995952ed4fe6f7d450bb2d541286..9809ceea557eb95aaa285ddacc4e30dc2a4b4817 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 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.
index df3c00e9707591af1872cfc19fffbf8e0108b545..33e713d09db612935945a5f499f6d2944cbe9d12 100755 (executable)
@@ -10,10 +10,21 @@ if test -z "$srcdir"; then
 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