Ralf Wildenhues [Sat, 12 Jan 2008 13:58:44 +0000 (13:58 +0000)]
* ltmain.in (link mode): Fix warning about -l and -L for
archives and objects as output, to not trigger for *.la files.
Non-convenience archives are diagnosed later on.
Ralf Wildenhues [Fri, 11 Jan 2008 19:15:57 +0000 (19:15 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) <exclude_expsyms>:
Also exclude `_GLOBAL__F[ID]_.*'. Also set for the C++ tag.
Fixes esp. demo/helldl build failure with GCC on AIX.
Report by Rainer Tammer.
Ralf Wildenhues [Thu, 15 Nov 2007 19:36:41 +0000 (19:36 +0000)]
Avoid mixing functions and data pointers in callback functions.
* libltdl/ltdl.c (file_worker_func): New type.
(lt_dlforeachfile): Instead of passing a function pointer as a
data pointer, pass a pointer to a file_worker_func pointer.
(foreach_callback_func): Adjust.
Backport from 2006-08-31 fix in HEAD.
Report by Maciej Bliziński <maciej.blizinski@gmail.com>.
Ralf Wildenhues [Mon, 12 Nov 2007 19:45:16 +0000 (19:45 +0000)]
Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
* libtool.m4 (_LT_LINKER_BOILERPLATE, AC_LIBTOOL_LINKER_OPTION)
(AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): Remove conftest.dSYM
directory.
Report and analysis by Jeff Squyres and Peter O'Gorman.
* libltdl/ltdl.c (try_dlopen): Do not test array address of
sys_dlsearch_path against NULL, rather test for nonempty
contents.
Coverity reports CID 148 and CID 149 via Jeff Squyres.
* libtool.m4 (_LT_AC_LOCK) [ solaris ]: Cater to old Sparc
Solaris 7 ld that does not understand `-64'.
Report by Vincent Lefevre <vincent@vinc17.org>.
* ltmain.in (execute mode): Do not unset locale variables that
have not been set previously. Do not use uninitialized
$lt_unset. Report by <deckrider@gmail.com>.
* doc/libtool.texi (Link mode) <-no-install>: Mention that this
still generates a wrapper script on systems without hardcoding.
* THANKS: Update.
Report by Simon Josefsson.
Ralf Wildenhues [Sun, 18 Mar 2007 18:45:19 +0000 (18:45 +0000)]
* mdemo/Makefile.am (libmlib_la_LDFLAGS): Add
`-export-symbols-regex ".*"' because the convenience libltdl
uses export markers and thus turns off autoexport on w32. Fixes
test failures for Cygwin and MinGW.
Bug analysis by Charles Wilson.
Ralf Wildenhues [Sun, 18 Mar 2007 18:09:57 +0000 (18:09 +0000)]
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER)
(AC_DEPLIBS_CHECK_METHOD, _LT_AC_LANG_CXX_CONFIG)
(AC_LIBTOOL_POSTDEP_PREDEP, AC_LIBTOOL_PROG_COMPILER_PIC)
(AC_LIBTOOL_PROG_LD_SHLIBS) [ interix ]: When matching for
interix, accept version range [3-9] instead of 3.
* NEWS: Update.
Report by Martin Koeppe <mkoeppe@gmx.de>.
Ralf Wildenhues [Sun, 18 Feb 2007 15:00:00 +0000 (15:00 +0000)]
* tests/dryrun.test: ls -l in MSYS sometimes shows year,
not time, for really fresh files. Add sleep 1 calls at
strategic places. Fixes test failure on MinGW.
Ralf Wildenhues [Sat, 17 Feb 2007 08:23:50 +0000 (08:23 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [ linux ]
<whole_archive_flag_spec>: For Sun C/C++ 5.9, do not add
/dev/null as dummy object, it fails with GNU ld version
2.16.91.0.7-amd-sles9. Report by Terry D. Dontje.
* THANKS: Update.
Ralf Wildenhues [Sun, 11 Feb 2007 13:37:02 +0000 (13:37 +0000)]
* libtool.m4 (_AS_TEST_PREPARE, AS_EXECUTABLE_P): m4_defun
these macros, if undefined, with modified copies from Autoconf
2.59.
(LT_AC_PROG_SED): Use AS_EXECUTABLE_P, not $as_executable_p,
this is an internal Autoconf detail.
Charles Wilson [Sun, 28 Jan 2007 13:33:52 +0000 (13:33 +0000)]
* libltdl/ltdl.c (LT_GLOBAL_DATA) [__CYGWIN__]: Also define on
Cygwin.
(LT_READTEXT_MODE): Ensure proper textmode fopen is used on
Cygwin.
* libltdl/ltdl.h (LT_SCOPE) [__CYGWIN__]: Also define on Cygwin.
Ralf Wildenhues [Sun, 28 Jan 2007 13:04:20 +0000 (13:04 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [ cygwin, mingw ]
<export_symbols_cmds>: Avoid shell expansion of '/s/.*' through
double expansion, in case there is a 'S:' drive.
Report by Charles Wilson.
Ralf Wildenhues [Sun, 21 Jan 2007 16:16:05 +0000 (16:16 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [cygwin, mingw]:
Use `lib -OUT' rather than `lib /OUT' to avoid MSYS path
translation mangling. Report by Christopher Hulbert.
* THANKS: Update.
Ralf Wildenhues [Fri, 25 Aug 2006 14:56:56 +0000 (14:56 +0000)]
* libtool.m4 (AC_DEPLIBS_CHECK_METHOD) [ mingw, pw32 ]:
If `file' is present, use `func_win32_libid' rather than
`objdump -f', to facilitate cross-compilation.
Reported by Pierre Ossman <ossman@cendio.se>.
Albert Chin [Wed, 2 Aug 2006 13:35:37 +0000 (13:35 +0000)]
* libtool.m4 (AC_LIBTOOL_POSTDEP_PREDEP) [ solaris ]:
Don't set $postdeps to "-lCstd -lCrun" if
"-library=stlport4" set in CXXFLAGS as stlport4 C++
library incompatible with Cstd C++ library. Use
'-library=Cstd -library=Crun' instead of '-lCstd -lCrun'.
Ralf Wildenhues [Sat, 24 Jun 2006 05:00:22 +0000 (05:00 +0000)]
* libtool.m4 (_LT_COMPILER_BOILERPLATE, _LT_LINKER_BOILERPLATE):
Rewrite to not use unchecked `printf', for old systems like
SunOS 4.1.
(AC_LIBTOOL_COMPILER_OPTION, AC_LIBTOOL_LINKER_OPTION)
(AC_LIBTOOL_PROG_CC_C_O, AC_LIBTOOL_PROG_LD_SHLIBS): Likewise.
(AC_LIBTOOL_LANG_C_CONFIG): Adjust: use literal newlines in
`lt_simple_compile_test_code' and `lt_simple_link_test_code'.
(AC_LIBTOOL_LANG_CXX_CONFIG, AC_LIBTOOL_LANG_F77_CONFIG)
(AC_LIBTOOL_LANG_GCJ_CONFIG, AC_LIBTOOL_LANG_RC_CONFIG):
Likewise.
Bug report by Bruce Becker and Mark Andrews.
Ralf Wildenhues [Mon, 12 Jun 2006 05:25:26 +0000 (05:25 +0000)]
* ltmain.in (link mode): Disregard
`hardcode_libdir_flag_spec_ld' if we're using `$CC' to link.
* libtool.m4 () [ hpux10, hpux11; hppa*64*, ia64* ]
<hardcode_libdir_flag_spec_ld>: Removed.
Reported by Roger While <simrw@sim-basis.de>.
Ralf Wildenhues [Thu, 1 Jun 2006 19:09:56 +0000 (19:09 +0000)]
* ltmain.in: Convert *each* occurrence of `compile_command',
`finalize_command', `relink_command', and `link_command',
that can conceivably be longer than 4000 bytes, to newline-
separated arguments before feeding to sed, to cater for sed
implementations with limited line lengths. Convert back
afterwards.
* tests/link.test: Accommodate for trailing white space
resulting from above change.
This addresses an issue reported by Albert Chin on 2001-05-27:
http://lists.gnu.org/archive/html/libtool/2001-05/msg00159.html
Ralf Wildenhues [Thu, 18 May 2006 16:34:38 +0000 (16:34 +0000)]
* libtoolize.in: Use just one `echo' for `--version' output
instead of several `echo', to avoid `Broken pipe' errors.
Reported by Behdad Esfahbod <behdad@cs.toronto.edu>.
Bruno Haible [Mon, 15 May 2006 16:41:00 +0000 (16:41 +0000)]
* libtool.m4 [ linux ] (AC_LIBTOOL_LANG_CXX_CONFIG)
(AC_LIBTOOL_POSTDEP_PREDEP, AC_LIBTOOL_PROG_COMPILER_PIC)
(AC_LIBTOOL_PROG_LD_SHLIBS): Add support for Sun C 5.9,
Sun C++ 5.9, and Sun Fortran 8.3 on GNU/Linux.
* NEWS: Update.
John Bowler [Sun, 14 May 2006 08:21:23 +0000 (08:21 +0000)]
* ltmain.in (link mode): For version_type `none', we still need
to set `current', `age', and `revision', so that our checks
don't barf. The values won't be used later. Apparently
reported by several people, several times, for BeOS.
* NEWS, THANKS: Update.
Ralf Wildenhues [Tue, 28 Mar 2006 18:12:50 +0000 (18:12 +0000)]
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [ linux ]:
Avoid warning when "parsing" `/etc/ld.so.conf' and empty
`/etc/ld.so.conf.d'.
Reported by Orion Poplawski <orion@cora.nwra.com>.
Ralf Wildenhues [Thu, 23 Mar 2006 22:40:21 +0000 (22:40 +0000)]
* ltdl.m4 (AC_LTDL_SYS_DLOPEN_DEPLIBS) [ freebsd, dragonfly ]:
Set libltdl_cv_sys_dlopen_deplibs to yes. Fixes excessive
lt_dlopen times on these systems.
* NEWS, THANKS: Update.
Bug reported by Peter Jeremy <peterjeremy@optushome.com.au>,
patch by Joerg Sonnenberger <joerg@netbsd.org>.
Ralf Wildenhues [Thu, 16 Mar 2006 20:48:52 +0000 (20:48 +0000)]
* ltmain.in (link mode) [ openbsd, netbsd, dragonfly, .. ]:
Fix 1.5.22 regression by commenting out the code to remove the
uninstalled paths. It was never working, and it is not at the
right place. A proper removal code is to follow. This
regression was visible on OpenBSD, NetBSD, DragonFly, and other
systems with hardcode_direct=yes.
* NEWS, THANKS: Updated.
Reported by Joerg Sonnenberger <joerg@netbsd.org> and
Marc Espie <espie@nerim.net> and others.
Ralf Wildenhues [Thu, 16 Mar 2006 16:58:04 +0000 (16:58 +0000)]
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [ freebsd,
dragonfly ]: Fix 1.5.22 regression caused by too strict $host_os
match that stopped DragonFly from working.
* NEWS, THANKS: Updated.
Reported by Jeremy C. Reed <reed@reedmedia.net>, patch by
Todd Vierling <tv@duh.org>.
Ralf Wildenhues [Mon, 13 Feb 2006 17:02:53 +0000 (17:02 +0000)]
* ltmain.in (link mode) [ linux ]: PGI: for `reload_cmds', we
not only need to get rid of `$wl', but also turn comma into
space so $LD understands whole_archive_flag_spec correctly.
Ralf Wildenhues [Mon, 13 Feb 2006 16:52:38 +0000 (16:52 +0000)]
* ltmain.in <startup, shell wrapper>: Add _AS_BOURNE_COMPATIBLE
code from Autoconf, to fix issues with zsh and other shells.
Reported by David Gómez Espinosa <david@pleyades.net>.