Skip to content
Snippets Groups Projects
Commit 745a04c2 authored by Stan Seibert's avatar Stan Seibert
Browse files

Move dlopen flag settings from header file to configure script and add

Solaris 2.7 as a targe which requires RTLD_LAZY to work.  Closes bug 240.


git-svn-id: http://svn.xiph.org/trunk/ao@5255 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent c37dd552
No related branches found
No related tags found
No related merge requests found
...@@ -102,6 +102,20 @@ dnl ============================== ...@@ -102,6 +102,20 @@ dnl ==============================
dnl Checks for header files dnl Checks for header files
dnl ============================== dnl ==============================
dnl ==============================
dnl Select proper dlopen flags
dnl ==============================
case $host in
*openbsd* | *netbsd* | *hpux* | *solaris2.7)
DLOPEN_FLAG='(RTLD_LAZY)'
;;
*)
DLOPEN_FLAG='(RTLD_NOW | RTLD_GLOBAL)'
;;
esac
AC_DEFINE_UNQUOTED(DLOPEN_FLAG, $DLOPEN_FLAG)
dnl -------------------------------------------------- dnl --------------------------------------------------
dnl Work around FHS stupidity dnl Work around FHS stupidity
dnl -------------------------------------------------- dnl --------------------------------------------------
......
...@@ -38,13 +38,13 @@ ...@@ -38,13 +38,13 @@
#endif #endif
/* RTLD_NOW is the preferred symbol resolution behavior, but /* RTLD_NOW is the preferred symbol resolution behavior, but
* some platforms do not support it. * some platforms do not support it. The autoconf script will have
* already defined DLOPEN_FLAG if the default is unacceptable on the
* current platform.
* *
* ALSA requires RTLD_GLOBAL. * ALSA requires RTLD_GLOBAL.
*/ */
#if defined(__OpenBSD__) || defined(hpux) #if !defined(DLOPEN_FLAG)
#define DLOPEN_FLAG (RTLD_LAZY)
#else
#define DLOPEN_FLAG (RTLD_NOW | RTLD_GLOBAL) #define DLOPEN_FLAG (RTLD_NOW | RTLD_GLOBAL)
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment