зеркало из https://github.com/mozilla/gecko-dev.git
Bug 362768: implemented NSPR shared library finalization function for AIX.
r=nelsonb Modified files: pr/src/Makefile.in ptthread.c
This commit is contained in:
Родитель
e7718b7aa3
Коммит
fde6f51f7b
|
@ -119,6 +119,7 @@ OS_LIBS += -lc
|
|||
endif
|
||||
|
||||
ifeq ($(OS_ARCH),AIX)
|
||||
DSO_LDOPTS += -binitfini::_PR_Fini
|
||||
OS_LIBS = -lodm -lcfg
|
||||
ifeq ($(CLASSIC_NSPR),1)
|
||||
ifeq ($(OS_RELEASE),4.1)
|
||||
|
|
|
@ -945,6 +945,7 @@ static void _PR_Fini(void) __attribute__ ((destructor));
|
|||
* Sun Studio compiler
|
||||
*/
|
||||
#pragma fini(_PR_Fini)
|
||||
static void _PR_Fini(void);
|
||||
#elif defined(HPUX)
|
||||
/*
|
||||
* Current versions of HP C compiler define __HP_cc.
|
||||
|
@ -952,6 +953,7 @@ static void _PR_Fini(void) __attribute__ ((destructor));
|
|||
*/
|
||||
#if defined(__ia64) || defined(_LP64)
|
||||
#pragma FINI "_PR_Fini"
|
||||
static void _PR_Fini(void);
|
||||
#else
|
||||
/*
|
||||
* Only HP-UX 10.x style initializers are supported in 32-bit links.
|
||||
|
@ -984,7 +986,7 @@ void PR_HPUX10xInit(shl_t handle, int loading)
|
|||
/* Need to use the -binitfini::_PR_Fini linker option. */
|
||||
#endif
|
||||
|
||||
static void _PR_Fini(void)
|
||||
void _PR_Fini(void)
|
||||
{
|
||||
void *thred;
|
||||
int rv;
|
||||
|
|
Загрузка…
Ссылка в новой задаче