]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: do not assume compiler prefers shared libraries.
authorEric Bavier <bavier@cray.com>
Thu, 4 Dec 2014 16:34:17 +0000 (16:34 +0000)
committerGary V. Vaughan <gary@gnu.org>
Thu, 4 Dec 2014 16:37:21 +0000 (16:37 +0000)
Testing whether -static-libtool-libs causes a non-libtool library to be
linked dynamically is effectively a test of the compiler's preference in
this case.  The Cray compiler prefers static libraries if not told
otherwise.
* tests/static.at [static linking flags for programs]: Do not expect
 -static-libtool-libs to fail.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
tests/static.at

index 19125de96a627f6306cc771a08d833b1c1b273c6..240a2181fefa2b79ab75f8ac955463489d1a1406 100644 (file)
@@ -344,7 +344,10 @@ for withdep in no yes; do
   echo "### test whether non-libtool library liba3 was linked statically"
   func_move_libs a3 $prefix3 $prefix1 $prefix2
   func_test_exec $all_static `$per_deplib && echo 3 13 23 31 123 123a`
-  func_test_exec_fail -static -static-libtool-libs `$per_deplib && echo 1 2 12`
+  # no '-static-libtool-libs' flag below, because some hosts such as
+  # Cray prefer static libs by default.
+  # and doesn't exercise anything not already tested above:
+  func_test_exec_fail -static `$per_deplib && echo 1 2 12`
   func_restore_libs a3 $prefix3
 
   cd ..