Kaydet (Commit) 037584cf authored tarafından Michael Stahl's avatar Michael Stahl

configure: check for dlsym(), not dlopen()

On Fedora 23, the check for dlopen happens to succeed with gcc -m32
-fsanitize=address, and then linking executables fails due to not
finding dlsym.  Checking for dlsym results in the proper -ldl.

Change-Id: I02108c2c053e07b33848af068937f29967e7dc6a
üst 3fc4374d
......@@ -904,9 +904,9 @@ AC_SUBST(PTHREAD_LIBS)
if test $_os != "WINNT"; then
save_LIBS="$LIBS"
AC_SEARCH_LIBS([dlopen], [dl],
[case "$ac_cv_search_dlopen" in -l*) DLOPEN_LIBS="$ac_cv_search_dlopen";; esac],
[AC_MSG_ERROR([dlopen not found in either libc nor libdl])])
AC_SEARCH_LIBS([dlsym], [dl],
[case "$ac_cv_search_dlsym" in -l*) DLOPEN_LIBS="$ac_cv_search_dlsym";; esac],
[AC_MSG_ERROR([dlsym not found in either libc nor libdl])])
LIBS="$save_LIBS"
fi
AC_SUBST(DLOPEN_LIBS)
......
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