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.
This commit is contained in:
wchang0222%aol.com 2004-01-20 19:49:03 +00:00
Родитель 6285c9b7a2
Коммит ce7e27f964
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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