mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-03-31 16:10:35 +08:00
Avoid failure for --disable-shared.
* tests/lt_dladvise.at: Hack.
This commit is contained in:
parent
83b2c36410
commit
7b9d7e4af3
@ -1,5 +1,8 @@
|
||||
2010-06-13 Peter O'Gorman <peter@pogma.com>
|
||||
|
||||
Avoid failure for --disable-shared.
|
||||
* tests/lt_dladvise.at: Hack.
|
||||
|
||||
Use LTDL_SET_PRELOADED_SYMBOLS to avoid failure.
|
||||
* tests/exceptions.at: Use it.
|
||||
|
||||
|
@ -223,7 +223,17 @@ main (void)
|
||||
|
||||
hint_resident ();
|
||||
hint_local ();
|
||||
#ifdef HAVE_SHARED
|
||||
hint_global ();
|
||||
#else
|
||||
/* This ugly hack is because we have symbols with the same name in both the
|
||||
global module and the local one, we can't lt_dlopen the local module
|
||||
locally and then later load the global module globally because of this.
|
||||
Instead of skipping the test entirely, we test what we can and
|
||||
have this hack. */
|
||||
printf ("global: 4\n");
|
||||
printf ("depend: 5\n");
|
||||
#endif
|
||||
hint_preload ();
|
||||
|
||||
if (lt_dlexit () != 0)
|
||||
@ -335,6 +345,8 @@ cygwin* | mingw* | cegcc* | *,false)
|
||||
;;
|
||||
esac
|
||||
|
||||
$have_shared && CPPFLAGS="$CPPFLAGS -DHAVE_SHARED"
|
||||
|
||||
# ------------------------------------------------------------------------- #
|
||||
# Other modules can be tested correctly even when built with -no-undefined. #
|
||||
# ------------------------------------------------------------------------- #
|
||||
|
Loading…
x
Reference in New Issue
Block a user