]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (sys_dl_open): Don't load libraries with global
authorScott James Remnant <scott@netsplit.com>
Wed, 24 Mar 2004 04:00:46 +0000 (04:00 +0000)
committerScott James Remnant <scott@netsplit.com>
Wed, 24 Mar 2004 04:00:46 +0000 (04:00 +0000)
symbol resolution.
* NEWS: Updated.

ChangeLog
NEWS
libltdl/ltdl.c

index 0c32c6a24be0a104a9eb1c73e4bb1440d186dac6..597d159cff3656371151d6cbaebdb11b23741f19 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-24  Scott James Remnant  <scott@netsplit.com>
+
+       * libltdl/ltdl.c (sys_dl_open): Don't load libraries with global
+       symbol resolution.
+       * NEWS: Updated.
+
 2004-03-24  Albert Chin-A-Young  <china@thewrittenword.com>
 
        * m4/libtool.m4: Add new variable, inherit_rpath, if the
diff --git a/NEWS b/NEWS
index 3b2287c6d4cdc8e91e9bacda32643b8d5509ae2f..0d7c25a45580ec8b4b6b6bac6a24b6a323c24d13 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -37,6 +37,7 @@ New in 1.5b: 2004-??-??; CVS version 1.5a, Libtool team:
 * Speed up max_cmd_len check.
 * New function in libltdl: lt_dlhandle_find provides access to module handles
   by module name.
+* libltdl no longer loads shared libraries with global symbol resolution.
 * make install now deletes preexisting $prefix/share/libtool before installing
   latest files.
 * Extracting symbols from an import library on cygwin and win32 now works.
index ed7239da2f4b83732847ccc5678ed396258c76ff..4efb808dbc70f3d9dcc749c8a12c7fa62d384009 100644 (file)
@@ -1033,17 +1033,6 @@ lt_estrdup (str)
 #  include <sys/dl.h>
 #endif
 
-#ifdef RTLD_GLOBAL
-#  define LT_GLOBAL            RTLD_GLOBAL
-#else
-#  ifdef DL_GLOBAL
-#    define LT_GLOBAL          DL_GLOBAL
-#  endif
-#endif /* !RTLD_GLOBAL */
-#ifndef LT_GLOBAL
-#  define LT_GLOBAL            0
-#endif /* !LT_GLOBAL */
-
 /* We may have to define LT_LAZY_OR_NOW in the command line if we
    find out it does not work in some platform. */
 #ifndef LT_LAZY_OR_NOW
@@ -1079,7 +1068,7 @@ sys_dl_open (loader_data, filename)
      lt_user_data loader_data;
      const char *filename;
 {
-  lt_module   module   = dlopen (filename, LT_GLOBAL | LT_LAZY_OR_NOW);
+  lt_module   module   = dlopen (filename, LT_LAZY_OR_NOW);
 
   if (!module)
     {