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>.
Ralf Wildenhues [Sun, 5 Feb 2006 11:08:52 +0000 (11:08 +0000)]
* ltmain.in (extracted_archives, extracted_serial): New globals.
(func_extract_archives): Use them to rename extraction archives
for linking against multiple convenience libraries with the same
name.
Reported by Carlo Contavalli <ccontavalli@commedia.it>.
Ralf Wildenhues [Fri, 3 Feb 2006 20:05:00 +0000 (20:05 +0000)]
* libtool.m4 [ solaris ] (AC_LIBTOOL_LANG_CXX_CONFIG)
(AC_LIBTOOL_PROG_LD_SHLIBS) < whole_archive_flag_spec >:
Fix this once and for all, for both the SUN compiler suite
(cc/CC/f77/f90/f95) and GCC.
Reported by Yuri Pukhalsky <pooh@cryptopro.ru>.
Ralf Wildenhues [Sat, 21 Jan 2006 16:46:08 +0000 (16:46 +0000)]
* libtool.m4 (_LT_AC_SYS_LIBPATH_AIX): Don't use semicolons
inside { } in sed scripts, as Posix says it's not portable.
* ltmain.in (func_win32_libid): Likewise.
* mailnotify, commit: Likewise.
Noted by Paul Eggert <eggert@cs.ucla.edu>.
Ralf Wildenhues [Sun, 18 Dec 2005 21:52:53 +0000 (21:52 +0000)]
* ltmain.in (func_mktempdir): New, backported from HEAD.
(relink mode): Use it. Fixes potential denial of service
through malicious other local user.
Reported by James Kosin <jkosin@intcomgrp.com>.
Peter O'Gorman [Sun, 18 Dec 2005 21:37:20 +0000 (21:37 +0000)]
* ltmain.in (link mode): Don't die if -L<relative/path> does not
exist. Put in notinst_path though, so it won't end up in the
installed .la file.
(link mode): Really eliminate all temporary directories.
Jacob Meuser [Sun, 18 Dec 2005 17:59:07 +0000 (17:59 +0000)]
* ltmain.in (link mode): Move library search paths that coincide
with paths to not yet installed libraries to the beginning of
the library search list.
Kean Johnston [Sun, 18 Dec 2005 13:10:34 +0000 (13:10 +0000)]
* libtool.m4 (AC_PROG_NM): Also look in /usr/ccs/bin/elf,
for SCO. If we are not cross-compiling, but $ac_tool_prefix is
set, also try an un-prefixed `nm'.
Marc Espie [Sun, 18 Dec 2005 12:26:53 +0000 (12:26 +0000)]
* ltmain.in: Change semantics of `--tag=disable-static' and
`--tag=disable-shared': The last one given wins now, both
override the default setting inherited by other `--tag'
arguments, even if passed later on the command line.
Still make sure we do not disable both kinds by falling back
to static libraries.
Ralf Wildenhues [Mon, 28 Nov 2005 12:41:41 +0000 (12:41 +0000)]
* ltmain.in: Fix typo introduced in dllsearchpath backport.
<cwrappersource>: Undo line breaks in macro arguments.
Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
Charles Wilson [Fri, 25 Nov 2005 18:31:53 +0000 (18:31 +0000)]
* ltmain.in (link mode): add foo/bin for every foo/lib in
dllsearchpath when creating wrapper script. Fixes
build-relink2 test failure.
Backport of CVS HEAD 2004-10-13.
Ralf Wildenhues [Fri, 25 Nov 2005 18:18:20 +0000 (18:18 +0000)]
* libtool.m4 [aix] <archive_expsym_cmds>
(AC_LIBTOOL_PROG_LD_SHLIBS, AC_LIBTOOL_LANG_CXX_CONFIG): Always
move -bnoentry before $compiler_flags, so it can be overridden.
David Edelsohn [Thu, 24 Nov 2005 15:22:59 +0000 (15:22 +0000)]
* ltmain.in (link mode): Use $pic_object as $non_pic_object if
$non_pic_object=none.
* NEWS: Updated.
Missing backport from HEAD 2004-09-03 noted
by Max Bowsher <maxb1@ukf.net>.
Ralf Wildenhues [Sun, 20 Nov 2005 12:09:26 +0000 (12:09 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS)
(AC_LIBTOOL_LANG_CXX_CONFIG) [aix4/aix5 !ia64]: Set
whole_archive_flag_spec to $convenience so the convenience libs
are really added to the link cmdline.
Missing backport from CVS HEAD 2004-11-17 noted by Jørgen Moth
<jorgen.moth@uni-c.dk>.