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>.
Ralf Wildenhues [Sat, 12 Nov 2005 10:42:06 +0000 (10:42 +0000)]
* libtool.m4 (AC_LIBTOOL_DLOPEN_SELF)
(AC_LIBTOOL_PROG_COMPILER_PIC): Make sure `$wl' is properly
expanded for tests involving `export_dynamic_flag_spec',
`lt_prog_compiler_static'.
Ralf Wildenhues [Wed, 9 Nov 2005 22:37:42 +0000 (22:37 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Move setting of
`variables_saved_for_relink'..
(AC_LIBTOOL_SYS_DYNAMIC_LINKER): here, when both `shlibpath_var'
and `runpath_var' have been set.
Reported by Mike Frysinger <vapier@gentoo.org>.
Ralf Wildenhues [Wed, 9 Nov 2005 22:19:39 +0000 (22:19 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Move setting of
`variables_saved_for_relink'..
(AC_LIBTOOL_SYS_DYNAMIC_LINKER): here, when both `shlibpath_var'
and `runpath_var' have been set.
Reported by Mike Frysinger <vapier@gentoo.org>.
Ralf Wildenhues [Wed, 9 Nov 2005 22:06:04 +0000 (22:06 +0000)]
* libtool.m4 (AC_LIBTOOL_LANG_C_CONFIG): Move static_flag
check..
(AC_LIBTOOL_PROG_COMPILER_PIC): ..here, so that both
`lt_prog_compiler_static' have actually been set, and the check
is applied to each tag.
* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG)
(AC_LIBTOOL_PROG_LD_SHLIBS) [ hpux10, hpux11 ]:
hardcode_libdir_flag_spec and hardcode_minus_L are the same for
hppa*64 and ia64*. Don't set
hardcode_libdir_flag_spec='-L$libdir' on ia64* because if you
specify +b and -L, +b overrides what is set into DT_RPATH.
Ralf Wildenhues [Sun, 6 Nov 2005 12:36:07 +0000 (12:36 +0000)]
* libtool.m4 (AC_LIBTOOL_LANG_C_CONFIG)
(AC_LIBTOOL_LANG_CXX_CONFIG, AC_LIBTOOL_LANG_F77_CONFIG)
(AC_LIBTOOL_LANG_GCJ_CONFIG): Only call
AC_LIBTOOL_SYS_LIB_STRIP and AC_LIBTOOL_DLOPEN_SELF in the C
case, and without the tag argument.
Ralf Wildenhues [Tue, 1 Nov 2005 16:24:58 +0000 (16:24 +0000)]
* libtool.m4 (_LT_AC_LOCK) [ solaris ]: Add `-64' to $LD if
necessary, to permit combining of several convenience libs
without any further objects added.
Reported by Brian Barrett <brbarret@open-mpi.org>.
Kean Johnston [Tue, 1 Nov 2005 16:09:35 +0000 (16:09 +0000)]
* libtool.m4 (AC_LIBTOOL_DLOPEN_SELF): Use
`lt_prog_compile_static', not `link_static_flag'. Expand `$wl'
so expansion of `export_dynamic_flag_spec' works.
(_LT_AC_TRY_DLOPEN_SELF): Show dlerror() in case of failure.
(AC_LIBTOOL_PROG_LD_SHLIBS) [ aix3 ]: Likewise.
(AC_LIBTOOL_PROG_COMPILER_PIC) [ hpux* ]: Use `${wl}'.
Howard Chu [Sat, 29 Oct 2005 14:21:45 +0000 (14:21 +0000)]
* ltmain.in (link mode): With `-static', only link statically
against uninstalled libtool libraries. Fixes 1.5.x regression
to match documented (and actual 1.4.x) behavior.
* NEWS: Updated.
* ltmain.in (link mode): When accepting -64, -mips[0-9], et. al.
compiler flags, don't set compiler_flags only for GCC as the
vendor compiler also requires this flag. Sync with HEAD.
Reported by Donald Anderson <dda@ddanderson.com>.
Peter Ekberg [Wed, 21 Sep 2005 12:47:54 +0000 (12:47 +0000)]
* ltmain.in (clean mode): Clean up $dlname as well when cleaning
an uninstalled libtool library. Fixes -mode=clean on Cygwin and
MinGW to actually remove the dll when cleaning up an uninstalled
library.
Peter Ekberg [Tue, 20 Sep 2005 12:22:31 +0000 (12:22 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS, AC_LIBTOOL_LANG_CXX_CONFIG):
Split up --out-implib option for linker in separate args so that
the MSYS path translation can do its magic on the provided path
to the import library.
* libltdl/ltdl.c (lt_argz_insert): Work around newlib
argz_insert bug.
* libltdl/Makefile.am (libltdl_la_LDFLAGS): Bumped revision.
Reported by Eric Blake <ebb9@byu.net>.
* libtool.m4 (_LT_COMPILER_BOILERPLATE, _LT_LINKER_BOILERPLATE)
(AC_LIBTOOL_COMPILER_OPTION, AC_LIBTOOL_LINKER_OPTION)
(AC_LIBTOOL_PROG_CC_C_O): When comparing expected and actual
compiler/linker output for warnings, weed out both empty lines
as well as lines starting with possibly indented `+', to allow
for shell debugging with `set -x'.
Check the weeded instead of unweeded contents for emptiness.
* ltmain.in (link mode): Actually provide a useful error
message. Fixes long-standing shameful user neglection.
Reported by Martin Paljak <martin.paljak@gmail.com>.
Charles Wilson [Thu, 8 Sep 2005 07:01:13 +0000 (07:01 +0000)]
* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG)
(AC_LIBTOOL_PROG_LD_SHLIBS) [ cygwin, mingw, pw32 ]: Use
--enable-auto-image-base instead of a fixed image base address.
* libtool.m4 (AC_DEPLIBS_CHECK_METHOD) [ sysv4*uw2*,
sysv4.2uw2* ]: Fix my last checkin to really match the more special
case before the general case.
Reported by Stepan Kasal <kasal@ucw.cz>.
Roger Cornelius [Tue, 6 Sep 2005 08:18:34 +0000 (08:18 +0000)]
* libtool.m4 (AC_DEPLIBS_CHECK_METHOD) [ sysv5OpenUNIX8,
sysv5UnixWare7, sysv5uw[78], unixware7, sysv4*uw2* ]:
Match special cases before general case.