check for systems with broken RTLD_GLOBAL.

Sat Feb 17 07:33:44 2001  Tim Janik  <timj@gtk.org>

        * configure.in (G_MODULE_BROKEN_RTLD_GLOBAL): check for systems
        with broken RTLD_GLOBAL.

Sat Feb 17 07:33:21 2001  Tim Janik  <timj@gtk.org>

        * gmodule-dl.c: fix systems with broken RTLD_GLOBAL.
This commit is contained in:
Tim Janik
2001-02-17 06:34:42 +00:00
committed by Tim Janik
parent 41b0cbc3c0
commit c80c7b84fd
12 changed files with 86 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
Sat Feb 17 07:33:21 2001 Tim Janik <timj@gtk.org>
* gmodule-dl.c: fix systems with broken RTLD_GLOBAL.
2000-07-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gmodule.h: include glib.h before doing extern "C". Makes some

View File

@@ -58,15 +58,19 @@
* RTLD_GLOBAL - the external symbols defined in the library will be made
* available to subsequently loaded libraries.
*/
#ifndef RTLD_GLOBAL
#define RTLD_GLOBAL 0
#endif /* RTLD_GLOBAL */
#ifndef RTLD_LAZY
#define RTLD_LAZY 1
#endif /* RTLD_LAZY */
#ifndef RTLD_NOW
#define RTLD_NOW 0
#endif /* RTLD_NOW */
/* some systems (OSF1 V5.0) have broken RTLD_GLOBAL linkage */
#ifdef G_MODULE_BROKEN_RTLD_GLOBAL
#undef RTLD_GLOBAL
#endif /* G_MODULE_BROKEN_RTLD_GLOBAL */
#ifndef RTLD_GLOBAL
#define RTLD_GLOBAL 0
#endif /* RTLD_GLOBAL */
/* --- functions --- */

View File

@@ -38,6 +38,9 @@ extern "C" {
#if (@G_MODULE_NEED_USCORE@) || defined (hp9000s300) || defined (__hp9000s300) || defined (__hp9000s300__)
#define G_MODULE_NEED_USCORE
#endif
#if (@G_MODULE_BROKEN_RTLD_GLOBAL@)
#define G_MODULE_BROKEN_RTLD_GLOBAL
#endif
#ifdef __cplusplus