]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* tests/archive-in-archive.at
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 8 Feb 2008 06:55:07 +0000 (06:55 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 8 Feb 2008 06:55:07 +0000 (06:55 +0000)
(static library contains static library): Test also the actual
broken link command, and the following install command, as
UnixWare ar rightly refuses to put an archive into an archive.
Report by Tim Rice.

ChangeLog
tests/archive-in-archive.at

index 443ee70c7caf08dee4092c4830e2ffa473c2ce92..edf24b3196c7003bc3d1bae3c10848cf595d0835 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * tests/archive-in-archive.at
+       (static library contains static library): Test also the actual
+       broken link command, and the following install command, as
+       UnixWare ar rightly refuses to put an archive into an archive.
+       Report by Tim Rice.
+
 2008-02-06  Peter O'Gorman  <peter@pogma.com>
 
        * libltdl/m4/ltoptions.m4 (_LT_SET_OPTIONS): Only set default
index 5e675df989676b45afd3a3e995e270b973cded40..a57dfdd90f3c69be04182f7830e659b14d185b85 100644 (file)
@@ -1,6 +1,6 @@
 # dmacks.at --  test for dmacks bug  -*- Autotest -*-
 #
-#   Copyright (C) 2007 Free Software Foundation, Inc.
+#   Copyright (C) 2007, 2008 Free Software Foundation, Inc.
 #   Written by Peter O'Gorman, 2007
 #
 #   This file is part of GNU Libtool.
@@ -42,9 +42,10 @@ $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c -o bar.lo bar.c
 $LIBTOOL --mode=link --tag=CC --tag=disable-shared $CC $CFLAGS $LDFLAGS \
 -o libfoo.la foo.lo -version-info 1:0:0 -rpath $thisdir
 $LIBTOOL --mode=install cp libfoo.la $thisdir 
-$LIBTOOL --mode=link --tag=CC --tag=disable-shared $CC $CFLAGS $LDFLAGS \
--o libbar.la bar.lo ./libfoo.a -version-info 1:0:0 -rpath $thisdir 
-$LIBTOOL --mode=install cp libbar.la $thisdir
+AT_CHECK([$LIBTOOL --mode=link --tag=CC --tag=disable-shared $CC $CFLAGS $LDFLAGS \
+        -o libbar.la bar.lo ./libfoo.a -version-info 1:0:0 -rpath $thisdir],
+        [], [ignore], [ignore])
+AT_CHECK([$LIBTOOL --mode=install cp libbar.la $thisdir], [], [ignore], [ignore])
 AT_CHECK([ar -t libbar.a | grep libfoo.a],[1],[ignore],[ignore])
 archive_contents=`ar -t libbar.a`
 AT_XFAIL_IF([case "$archive_contents" in *"libfoo.a"*) : ;; esac])