]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix testsuite failure of lt_dlopenadvise test on FreeMiNT.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 7 Jun 2009 14:35:11 +0000 (16:35 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 7 Jun 2009 14:35:45 +0000 (16:35 +0200)
* tests/lt_dladvise.at (lt_dlopenadvise library loading): Do not
build moddepend for systems without shared libraries.
Report by Alan Hourihane.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/lt_dladvise.at

index e83a2fa280b82ae4019cf4185d0dd9aaa2b8e7d4..596abeac4bbce8e3c6008244e3d3b8ee6081ae9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-06-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       Fix testsuite failure of lt_dlopenadvise test on FreeMiNT.
+       * tests/lt_dladvise.at (lt_dlopenadvise library loading): Do not
+       build moddepend for systems without shared libraries.
+       Report by Alan Hourihane.
+
        testsuite: avoid failures due to old Automake.
        * tests/configure-iface.at (installable libltdl)
        (--with-ltdl-include/lib, --with-included-ltdl):
index 3bf9bee8281618a61f510e17d2c73f86c2c8b3e8..cdbe91d19848f15ae78e8616f5c1945c9e56dcbf 100644 (file)
@@ -1,6 +1,6 @@
 # lt_dladvise.at -- test libltdl functionality                -*- Autotest -*-
 #
-#   Copyright (C) 2007, 2008 Free Software Foundation, Inc.
+#   Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
 #   Written by Gary V. Vaughan, 2007
 #
 #   This file is part of GNU Libtool.
@@ -318,8 +318,11 @@ dlpreloadable='preload'
 # are reporting not able to accept the global hint to lt_dlopenadvise().    #
 # ------------------------------------------------------------------------- #
 
-case $host_os in
-cygwin* | mingw* | cegcc*)
+have_shared=false
+$LIBTOOL --features | grep 'enable shared libraries' >/dev/null && have_shared=:
+
+case $host_os,$have_shared in
+cygwin* | mingw* | cegcc* | *,false)
   # These hosts do not support linking without -no-undefined
   CPPFLAGS="$CPPFLAGS -DHAVE_UNDEFINED_SYMBOLS=0"
   ;;