summaryrefslogtreecommitdiff
path: root/soltools/checkdll
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2001-08-28 10:15:18 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2001-08-28 10:15:18 +0000
commita412b897cd65d09630d09d0280e213f8cdef913c (patch)
treecd8e5582d5731aa4e59eda8259395cd8fe665158 /soltools/checkdll
parent7537e626b938796c43224b0bb65ba33921ab7cd9 (diff)
#65293#: disable shared library unload check
Diffstat (limited to 'soltools/checkdll')
-rw-r--r--soltools/checkdll/checkdll.c20
1 files changed, 11 insertions, 9 deletions
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 <stdio.h>
#include <string.h>
#include <errno.h>
@@ -75,6 +70,13 @@
#include <dlfcn.h>
#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);