Commit a24f4cfe authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: prepare the switch from dyld to 'Dynamic Loader Compatibility...

macosx: prepare the switch from dyld to 'Dynamic Loader Compatibility Functions' as partially intended by [7147338b7439f7f4a5d6d9c86e8d5d7a8501be4d]

Using Apple's legacy object file image functions around NSModule is strongly discouraged and won't work in the future at all.
parent 40fd31c1
......@@ -791,7 +791,7 @@ if test "${ac_cv_have_plugins}" = "no"; then
fi
# Only test for dlopen() if the others didn't work
if test "${ac_cv_have_plugins}" = "no"; then
if test "${ac_cv_have_plugins}" = "no" -o "${SYS}" = "darwin"; then
AC_CHECK_HEADERS(dlfcn.h sys/dl.h)
ac_cv_my_have_dlopen=no
AC_CHECK_FUNC(dlopen,
......
......@@ -76,7 +76,7 @@ struct module_cache_t
#define MODULE_SHORTCUT_MAX 50
/* The module handle type. */
#if defined(HAVE_DL_DYLD)
#if defined(HAVE_DL_DYLD) && !defined(__x86_64__)
# if defined (HAVE_MACH_O_DYLD_H)
# include <mach-o/dyld.h>
# endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment