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.
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)
;;
esac
+$have_shared && CPPFLAGS="$CPPFLAGS -DHAVE_SHARED"
+
# ------------------------------------------------------------------------- #
# Other modules can be tested correctly even when built with -no-undefined. #
# ------------------------------------------------------------------------- #