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.
Gary V. Vaughan [Mon, 29 Aug 2005 11:11:41 +0000 (11:11 +0000)]
* libltdl/m4/ltdl.m4 (LTDL_CONVENIENCE): Fix the comment to not
pretend that LIBLTDL and LTDLINCL are not AC_SUBSTed here.
* doc/libtool.texi (Distributing libltdl): Update the
documentation to match the advice given in HEAD. Don't tell
the user they have to AC_SUBST again.
Bruno Haible [Wed, 24 Aug 2005 15:59:04 +0000 (15:59 +0000)]
* ltmain.in (install mode): Try "ln -s -f" and "rm -f && ln -s"
to make a symlink for a shared library: the former is needed for
libraries `ln' depends on, the latter for Solaris /bin/ln.
Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
Ralf Wildenhues [Fri, 12 Aug 2005 21:07:57 +0000 (21:07 +0000)]
* ltmain.in (install mode) [ cygwin, mingw ]: Do not append a dot
to a file name to source it, it breaks on cygwin managed mounts
and is not necessary anywhere.
Reported by Eric Blake <ebb9@byu.net>.
Ralf Wildenhues [Wed, 10 Aug 2005 14:07:29 +0000 (14:07 +0000)]
* Makefile.am, libltdl/Makefile.am: Install libltdl data files
in correct order, by Automake rules. Really fixes ownership and
timestamp problems.
Reported by Peter Breitenlohner <peb@mppmu.mpg.de> and
Charles Wilson <cygwin@cwilson.fastmail.fm>.
Peter O'Gorman [Sun, 24 Jul 2005 12:21:08 +0000 (12:21 +0000)]
* libtool.m4 (CXX, archive_cmds) [sun]: Add -lCstd, -lCrun
and -lc for c++ builds with Sun C++ and Centerline C++..
Reported by Albert Chin-A-Young <china@hewrittenword.com>
* ltmain.in: When a library is installed, dependent on a
convenience library, and it involves relinking, the object
files extracted from the convenience library are not removed
after the relink. This is a problem if you build as non-root,
install as root, then try to remove the build directory as
non-root; Clean up properly if relink fails; Change
"$realname"U to ${realname}T to be consistent.
Missing backport of 2004-03-24 patch reported against MirLibtool
by Marc Matteo <marcm@lectroid.net>.
* ltmain.in (install mode): Do not assume `-f' needs an argument if
the install program is `cp'. Cleanup install mode somewhat.
Reported by Juergen Leising <juergen.leising@gmx.de>.