>From 29544e8b260b789c8d06ecda3ab5b5caa75f5fe7 Mon Sep 17 00:00:00 2001 From: Peter O'Gorman Date: Fri, 11 Jun 2010 23:35:10 -0500 Subject: [PATCH 3/4] Avoid failure for --disable-shared. * tests/lt_dladvise.at: Hack. --- ChangeLog | 3 +++ tests/lt_dladvise.at | 7 +++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/ChangeLog b/ChangeLog index f9d5d81..2ab174b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2010-06-12 Peter O'Gorman + Avoid failure for --disable-shared. + * tests/lt_dladvise.at: Hack. + Use LTDL_SET_PRELOADED_SYMBOLS to avoid failure. * tests/exceptions.at: Use it. diff --git a/tests/lt_dladvise.at b/tests/lt_dladvise.at index cdbe91d..cefab93 100644 --- a/tests/lt_dladvise.at +++ b/tests/lt_dladvise.at @@ -223,7 +223,12 @@ main (void) hint_resident (); hint_local (); +#ifdef HAVE_SHARED hint_global (); +#else + printf ("global: 4\n"); + printf ("depend: 5\n"); +#endif hint_preload (); if (lt_dlexit () != 0) @@ -335,6 +340,8 @@ cygwin* | mingw* | cegcc* | *,false) ;; esac +$have_shared && CPPFLAGS="$CPPFLAGS -DHAVE_SHARED" + # ------------------------------------------------------------------------- # # Other modules can be tested correctly even when built with -no-undefined. # # ------------------------------------------------------------------------- # -- 1.7.0.1