jorton 2cc98b
jorton 2cc98b
Use RTLD_DEEPBIND by default.  Should really be done with a 
jorton 2cc98b
new function and a caller-specified flag but that got vetoed
jorton 2cc98b
upstream, and DEEPBIND is a good default.
jorton 2cc98b
jorton 2cc98b
--- apr-0.9.7/dso/unix/dso.c.deepbind
jorton 2cc98b
+++ apr-0.9.7/dso/unix/dso.c
jorton 2cc98b
@@ -122,7 +122,7 @@
jorton 2cc98b
     void *os_handle = dlopen((char *)path, RTLD_NOW | RTLD_GLOBAL);
jorton 2cc98b
 
jorton 2cc98b
 #else
jorton 2cc98b
-    int flags = RTLD_NOW | RTLD_GLOBAL;
jorton 2cc98b
+    int flags = RTLD_NOW | RTLD_GLOBAL | RTLD_DEEPBIND;
jorton 2cc98b
     void *os_handle;
jorton 2cc98b
 #ifdef _AIX
jorton 2cc98b
     if (strchr(path + 1, '(') && path[strlen(path) - 1] == ')')