]> git.ipfire.org Git - thirdparty/libtool.git/commit
[cygwin|mingw] fix dlpreopen with --disable-static
authorCharles Wilson <libtool@cwilson.fastmail.fm>
Sat, 3 Jan 2009 01:39:15 +0000 (20:39 -0500)
committerCharles Wilson <libtool@cwilson.fastmail.fm>
Wed, 7 Jul 2010 04:42:00 +0000 (00:42 -0400)
commite83da49a1faf9df1c7e351df9e9b175388d76619
tree3ee9750917d99cf7f07d8d35b4c58421aa130d6f
parentb28132eabade54dbb9ff18a5761be445d916e148
[cygwin|mingw] fix dlpreopen with --disable-static

* libltdl/config/general.m4sh (func_tr_sh): New function.
* libltdl/config/ltmain.m4sh (func_generate_dlsyms) [cygwin|mingw]:
Obtain DLL name corresponding to import library by using value
stored in unique variable libfile_$(transliterated implib name).
If that fails, use $sharedlib_from_linklib_cmd to extract DLL
name from import library directly. Also, properly extract dlsyms
from the import library.
(func_mode_link) [cygwin|mingw]: Prefer to dlpreopen DLLs
over static libs when both are available.  When dlpreopening
DLLs, use linklib (that is, import lib) as dlpreopen file,
rather than DLL. Store name of associated la file in
unique variable libfile_$(transliterated implib name)
for later use.
(func_win32_libid): Accomodate pei-i386 import libs
as well as pe-i386.
(func_cygming_dll_for_implib): New function.
(func_cygming_dll_for_implib_fallback): New function.
(func_cygming_dll_for_implib_fallback_core): New function.
(func_cygming_gnu_implib_p): New function.
(func_cygming_ms_implib_p): New function.
* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Adjust sed
expressions for lt_cv_sys_global_symbol_to_c_name_address and
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
as trailing space after module name is optional.
(_LT_LINKER_SHLIBS) [cygwin|mingw][C++]:
Set exclude_expsyms correctly for $host. Simplify regular
expression in export_symbols_cmds.
(_LT_LINKER_SHLIBS) [cygwin|mingw|pw32][C]: Set exclude_expsyms
correctly for $host. Enable export_symbols_cmds to identify
DATA exports by _nm_ prefix.
(_LT_CHECK_SHAREDLIB_FROM_LINKLIB): New macro sets
sharedlib_from_linklib_cmd variable.
(_LT_DECL_DLLTOOL): New macro ensures DLLTOOL is always set.
ChangeLog
libltdl/config/general.m4sh
libltdl/config/ltmain.m4sh
libltdl/m4/libtool.m4