diff options
author | wchang0222%aol.com <devnull@localhost> | 2004-01-20 19:46:21 +0000 |
---|---|---|
committer | wchang0222%aol.com <devnull@localhost> | 2004-01-20 19:46:21 +0000 |
commit | 7596003bca8ab627570eafb0de08b3b3681fda8b (patch) | |
tree | ece19735f5b5ebe87867af0181996607a0a8ac82 | |
parent | 2d270f709e19bc83155360b5875226643388e44e (diff) | |
download | nspr-hg-7596003bca8ab627570eafb0de08b3b3681fda8b.tar.gz |
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
-rw-r--r-- | pr/src/linking/prlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pr/src/linking/prlink.c b/pr/src/linking/prlink.c index 1ebf51f5..991ba3d6 100644 --- a/pr/src/linking/prlink.c +++ b/pr/src/linking/prlink.c @@ -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 |