From a412b897cd65d09630d09d0280e213f8cdef913c Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Tue, 28 Aug 2001 10:15:18 +0000 Subject: #65293#: disable shared library unload check --- soltools/checkdll/checkdll.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'soltools/checkdll') diff --git a/soltools/checkdll/checkdll.c b/soltools/checkdll/checkdll.c index f864a25d3d90..b64a21ddd4d2 100644 --- a/soltools/checkdll/checkdll.c +++ b/soltools/checkdll/checkdll.c @@ -2,9 +2,9 @@ * * $RCSfile: checkdll.c,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: svesik $ $Date: 2001-06-22 12:36:23 $ + * last change: $Author: hr $ $Date: 2001-08-28 11:15:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -60,11 +60,6 @@ ************************************************************************/ -/* NOTE: the special hack for GCC is necessary as long we keep - * libusrxxxli.so. It's simply broken. - */ - - #include #include #include @@ -75,6 +70,13 @@ #include #endif +/* + * NOTE: Since no one is really interested in correct unload behavior I've + * disabled the shared library unload check. If you want to reenable it comment + * the following line out + */ +#define NO_UNLOAD_CHECK + static const char *pprog_name = "checkdll"; static const char *psymbol = "GetVersionInfo"; @@ -158,7 +160,7 @@ int main(int argc, char *argv[]) if ( (phandle = dlopen(argv[1], RTLD_NOW)) != NULL ) { if ( (pfun = (char *(*)(void))dlsym(phandle, psymbol)) != NULL ) { printf(": ok\n"); -#if !defined(IRIX) && defined(GCC) +#ifdef NO_UNLOAD_CHECK _exit(0); #else dlclose(phandle); @@ -168,7 +170,7 @@ int main(int argc, char *argv[]) } printf(": ERROR: %s\n", dlerror()); if (phandle) -#ifdef GCC +#ifdef NO_UNLOAD_CHECK _exit(3); #else dlclose(phandle); -- cgit