From: Ralf Wildenhues Date: Sun, 7 Jun 2009 14:35:11 +0000 (+0200) Subject: Fix testsuite failure of lt_dlopenadvise test on FreeMiNT. X-Git-Tag: v2.2.7b~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=efe1cfec710dbd06987fed02ec4d70d5c6630322;p=thirdparty%2Flibtool.git 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. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index e83a2fa28..596abeac4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-06-07 Ralf Wildenhues + 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): diff --git a/tests/lt_dladvise.at b/tests/lt_dladvise.at index 3bf9bee82..cdbe91d19 100644 --- a/tests/lt_dladvise.at +++ b/tests/lt_dladvise.at @@ -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" ;;