Blame SOURCES/apr-1.4.8-deepbind.patch
|
|
301a8f |
--- apr-1.4.8/dso/unix/dso.c.deepbind
|
|
|
301a8f |
+++ apr-1.4.8/dso/unix/dso.c
|
|
|
301a8f |
@@ -38,6 +38,8 @@
|
|
|
301a8f |
#define DYLD_LIBRARY_HANDLE (void *)-1
|
|
|
301a8f |
#endif
|
|
|
301a8f |
|
|
|
301a8f |
+static int use_deepbind; /* 0 = unset, 1 = use DEEPBIND, -1, don't use DEEPBIND */
|
|
|
301a8f |
+
|
|
|
301a8f |
APR_DECLARE(apr_status_t) apr_os_dso_handle_put(apr_dso_handle_t **aprdso,
|
|
|
301a8f |
apr_os_dso_handle_t osdso,
|
|
|
301a8f |
apr_pool_t *pool)
|
|
|
301a8f |
@@ -125,6 +127,12 @@
|
|
|
301a8f |
#else
|
|
|
301a8f |
int flags = RTLD_NOW | RTLD_GLOBAL;
|
|
|
301a8f |
void *os_handle;
|
|
|
301a8f |
+
|
|
|
301a8f |
+ if (use_deepbind == 0)
|
|
|
301a8f |
+ use_deepbind = getenv("APR_DEEPBIND") != NULL ? 1 : -1;
|
|
|
301a8f |
+ if (use_deepbind == 1)
|
|
|
301a8f |
+ flags |= RTLD_DEEPBIND;
|
|
|
301a8f |
+
|
|
|
301a8f |
#ifdef _AIX
|
|
|
301a8f |
if (strchr(path + 1, '(') && path[strlen(path) - 1] == ')')
|
|
|
301a8f |
{
|