libtool/libltdl
Ralf Wildenhues 5b79e16a32 Uniform const'ness of symlist variable lt_preloaded_symbols.
On some systems, lt_preloaded_symbols may not be declared
const due to relocation issues.  C99 requires qualification to
match for compatible declarations, so ensure we declare
const'ness in the same way everywhere; link-time optimization
may otherwise rightfully complain about inconsistencies.
Since ltdl.h may not depend upon config.h, rely on system
defines for choosing const'ness.

* NEWS: Update.
* doc/libtool.texi (Dlpreopening): Document this issue.
* libltdl/config/ltmain.m4sh (func_generate_dlsyms):
[__WINDOWS__, __CYGWIN__, _WIN32_WCE]: Define LT_DLSYM_CONST
according to system defines.  Remove old shell cruft.  Use
LT_DLSYM_CONST for lt_${my_prefix}_LTX_preloaded_symbols.
* libltdl/libltdl/lt_system.h (LT_DLSYM_CONST): Likewise,
define LT_DLSYM_CONST according to system defines.
* tests/demo/foo.h (LT_DLSYM_CONST): Likewise.
* tests/pdemo/foo.h (LT_DLSYM_CONST): Likewise.
* tests/demo/dlmain.c (lt_dlsymlist): Use LT_DLSYM_CONST.
* tests/pdemo/longer_file_name_dlmain.c (lt_dlsymlist):
Likewise.
* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Likewise
for configure test code.
* libltdl/ltdl.c (preloaded_symbols): Use LT_DLSYM_CONST.
* libltdl/ltdl.h (LTDL_SET_PRELOADED_SYMBOLS): Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-08-28 14:51:36 +02:00
..
config Uniform const'ness of symlist variable lt_preloaded_symbols. 2010-08-28 14:51:36 +02:00
libltdl Uniform const'ness of symlist variable lt_preloaded_symbols. 2010-08-28 14:51:36 +02:00
loaders Preserve the last error when restoring the error mode. 2010-03-17 09:01:57 +01:00
m4 Uniform const'ness of symlist variable lt_preloaded_symbols. 2010-08-28 14:51:36 +02:00
.cvsignore
.gitignore
argz_.h
argz.c
configure.ac Set SCM version number to 2.2.11a. 2010-06-09 22:17:47 +07:00
COPYING.LIB
lt__alloc.c
lt__dirent.c
lt__strl.c
lt_dlloader.c lt_dlloader_remove and lt_dlloader_find accept const arguments. 2009-12-02 23:13:20 +01:00
lt_error.c
ltdl.c Uniform const'ness of symlist variable lt_preloaded_symbols. 2010-08-28 14:51:36 +02:00
ltdl.h Uniform const'ness of symlist variable lt_preloaded_symbols. 2010-08-28 14:51:36 +02:00
Makefile.inc Prepare for next release candidate. 2010-05-21 04:24:18 +07:00
README Simplify license variations, and add missing license texts. 2010-06-09 19:00:19 +07:00
slist.c Test and fix slist.c. 2009-12-02 23:13:05 +01:00

This is GNU libltdl, a system independent dlopen wrapper for GNU libtool.

It supports the following dlopen interfaces:
* dlopen (Solaris, Linux and various BSD flavors)
* shl_load (HP-UX)
* LoadLibrary (Win16 and Win32)
* load_add_on (BeOS)
* GNU DLD (emulates dynamic linking for static libraries)
* dyld (darwin/Mac OS X)
* libtool's dlpreopen
-- 
   Copyright (C) 1999, 2003 Free Software Foundation, Inc.
   Written by Thomas Tanner, 1999

   This file is part of GNU Libtool.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.  This file is offered as-is,
without warranty of any kind.