Bugzilla bug 228899: pass the RTLD_MEMBER flag to dlopen on AIX so that we

can load a shared library that is a member of an archive. The patch was
contributed by Michael Lew <mlew@us.ibm.com>. r=wtc.
 Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH


git-svn-id: svn://10.0.0.236/branches/NSPRPUB_PRE_4_2_CLIENT_BRANCH@151593 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wchang0222%aol.com
2004-01-20 19:46:21 +00:00
parent 74d5d58a56
commit dbbbf3b91a

View File

@@ -1016,6 +1016,9 @@ pr_LoadLibraryByPathname(const char *name, PRIntn flags)
#ifdef NTO
/* Neutrino needs RTLD_GROUP to load Netscape plugins. (bug 71179) */
int dl_flags = RTLD_GROUP;
#elif defined(AIX)
/* AIX needs RTLD_MEMBER to load an archive member. (bug 228899) */
int dl_flags = RTLD_MEMBER;
#else
int dl_flags = 0;
#endif