* 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>.
Bob Friesenhahn [Thu, 16 Jun 2005 14:29:18 +0000 (14:29 +0000)]
* ltmain.in: Add fully-qualified paths to temp_rpath
rather than unqualified paths in order to avoid possible errors
when computing the fully-qualified path later.
Ralf Wildenhues [Mon, 6 Jun 2005 16:14:04 +0000 (16:14 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC, AC_LIBTOOL_PROG_LD_SHLIBS,
AC_LIBTOOL_LANG_CXX_CONFIG): PGI also has pgf95. PGI static flag is
`-Bstatic'. Remove harmless extra comma from whole_archive output.
Ralf Wildenhues [Sun, 5 Jun 2005 17:36:50 +0000 (17:36 +0000)]
* ltmain.in (compile mode): In order to find out
about forbidden characters in output, check with grep after checking
func_quote_for_eval result. Also, warn instead of fail.
(func_infer_tag, compile mode, link mode, install mode):
Revert SunOS sh bug workaround patch from 2004-12-28 as it
triggers bugs in the Tru64 5.1B shell.
Reported by Albert Chin <libtool@mlists.thewrittenword.com> and
Nicolas Joly <njoly@pasteur.fr>.
Peter O'Gorman [Tue, 31 May 2005 03:47:34 +0000 (03:47 +0000)]
* ltmain.in: Do not add installed static litool libraries to
convenience, they are not convenience libraries.
Reported by Chen-Mou Cheng <chenmou.cheng@gmail.com>
Ralf Wildenhues [Mon, 16 May 2005 08:55:29 +0000 (08:55 +0000)]
* doc/libtool.texi (Distributing libltdl): Add note that
`libltdl/Makefile' should not be configured by toplevel `configure.ac'.
Reported by Gideon Go <gideon.go@gmail.com>.
Ralf Wildenhues [Sun, 15 May 2005 14:13:23 +0000 (14:13 +0000)]
* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG, AC_LIBTOOL_PROG_LD_SHLIBS)
[linux]: PGI: Backport whole_archive changes from HEAD.
Add $pic_flag to archive_cmds and archive_expsyms_cmds.
Bug reported against LAM by Troy Telford <ttelford@lnxi.com>.
* ltdl.m4 (all over): Quote all arguments to AC_DEFINE and
AC_DEFINE_UNQUOTED consistently. Reported by
Michael Koch <konqueror@gmx.de>, Riccardo Mottola <zuse@libero.it>,
and Dalibor Topic <robilad@kaffe.org>.
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [openbsd3.3]: Set
need_version to yes or no depending on the os release.
Missing backport reported by Dalibor Topic <robilad@kaffe.org>.
* libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC, AC_LIBTOOL_PROG_LD_SHLIBS)
[solaris]: Update wl for Sun Studio f77/f90/f95. Fix
whole_archive_flag_spec for cc and f77/f90/f95 to prevent reordering in
case we link with $CC.
Gary V. Vaughan [Fri, 22 Apr 2005 09:05:43 +0000 (09:05 +0000)]
The FSF are moving offices today. Changed their contact address
in all files from `59 Temple Place, Suite 330, MA 02111-1307' to
`51 Franklin Street, Fifth Floor, MA 02110-1301'.
* libtool.m4 (_LT_COMPILER_BOILERPLATE, _LT_LINKER_BOILERPLATE):
New macros: save warnings and boilerplate of simple compile/link tests.
(AC_LIBTOOL_LANG_C_CONFIG, AC_LIBTOOL_LANG_CXX_CONFIG,
AC_LIBTOOL_LANG_F77_CONFIG, AC_LIBTOOL_LANG_GCJ_CONFIG,
AC_LIBTOOL_LANG_RC_CONFIG): Call.
(AC_LIBTOOL_COMPILER_OPTION, AC_LIBTOOL_LINKER_OPTION, AC_LIBTOOL_PROG_CC_C_O):
Fail only if nonempty warnings different from default compile/link.
* NEWS: Update.
* ltmain.in: Don't add files with the same base name to an
archive; rename duplicates instead.
(func_extract_an_archive): Remove section to deal with duplicate
base names in an archive.
* tests/func_extract_archives.test: remove.
* tests/duplicate_members.test: new test.
* tests/Makefile.am: Add new test, remove old.
Fix the order of -L flags added for libtool dep libs.
* ltmain.in (link mode): Add to tmp_libs paths for libtool dep
libs in reverse order as well.
* tests/defs: Set $build to allow to detect cross-compiles.
* tests/Makefile.am, tests/linkorder.test: New test.
Ralf Wildenhues [Tue, 22 Mar 2005 07:40:53 +0000 (07:40 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [solaris]: Use ${wlarc}
and set to empty when using $LD for linking. Fixes regression
introduced in 2004-12-20.
Reported by Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> and
Пухальский Юрий Андреевич <pooh@cryptopro.ru>.
Ralf Wildenhues [Mon, 21 Mar 2005 18:16:49 +0000 (18:16 +0000)]
* libtool.m4 (AC_LIBTOOL_SETUP, AC_LIBTOOL_LANG_CXX_CONFIG,
AC_LIBTOOL_LANG_F77_CONFIG, AC_LIBTOOL_PROG_LD_SHLIBS):
For matching compiler names: Pick only first word, allow leading white
space..
* tests/sh.test: ..and test for missing `*' at end of patterns.
Peter O'Gorman [Fri, 18 Mar 2005 15:33:58 +0000 (15:33 +0000)]
* libtool.m4: The compiler can be a program name with args, so
always check cc_basename against compiler name and a wildcard.
Also, drop unnecessary quotes in `case' argument.
* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG) [ solaris2.6+ ]:
When linking convenience libraries on Solaris with the Sun C++
compiler, pass convenience libraries through to the linker with
-Qoption between allextract/defaultextract. The Sun C++ compiler
bundles -Qoption arguments so convenience libraries are linked with
defaultextract otherwise.
Backport of branch-2-0 patch dated 2004-03-14.
Per Bothner [Tue, 15 Mar 2005 14:51:57 +0000 (14:51 +0000)]
Allow special characters in source file names. Will break unless
`-o target' is also given, which must not contain special characters.
En passant, fix source file quoting broken for cygwin/MSVC.
Gary V. Vaughan [Thu, 10 Mar 2005 20:20:41 +0000 (20:20 +0000)]
* libltdl/Makefile.am (install-data-local): Don't force v7 tar
format with the `o' flag in create mode.
Set the umask to 0 when untarring to avoid copied files taking
their mode from the installer's umask.
* libtoolize.m4sh (func_copy_cb): Ditto.
Ignore errors from failed `cd' in the tar processes, since we
may be running in dryrun mode.
* libltdl/Makefile.am (ltdldatafiles): List all files needed to
build a newly libtoolize installed libltdl directory even if the
parent project doesn't use autoconf and automake.
Reported by Noah Misch <noah@cs.caltech.edu>,
Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
* libtool.m4 (AC_LIBTOOL_LANG_CXX_CONFIG,
AC_LIBTOOL_PROG_LD_SHLIBS) [irix*, osf*]: Output -update_registry
information to ${output_objdir} directory, not ${objdir}.
${output_objdir} will work when a project has a single Makefile and
performs builds in subdirectories. ${objdir} expects the source in
the current directory, breaking single-Makefile builds.
Peter O'Gorman [Fri, 25 Feb 2005 14:14:20 +0000 (14:14 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): The Portland group's
compiler does not pass --whole-archive. Move gnu ld check for
the flag to the top so it can be overridden.
(AC_LIBTOOL_LANG_CXX_CONFIG): Unset whole_archive_flag_spec for
the portland group's c++ compiler too.
Reported by Jeff Squyres <jsquyres@lam-mpi.org>
Gary V. Vaughan [Thu, 24 Feb 2005 12:06:04 +0000 (12:06 +0000)]
Using `libtoolize --copy --ltdl' was not preserving timestamps, so
parts of the autoconf bootstrap would be rerun spuriously after
the files had been copied into the source tree:
* libtoolize.in: Use $tar to copy files to preserve timestamps.
(tar): New default tar command.
(cp): Use -p to try and preserve timestamps.
* libltdl/Makefile.am (ltdldatadir): Installation destination for
libltdl sources.
(install-data-local): New rule to install libltdl tree with tar to
preserve timestamps.
(local-install-files): Removed.
Reported by Jeff Squyres <jsquyres@lam-mpi.org>
Peter O'Gorman [Sat, 5 Feb 2005 13:59:49 +0000 (13:59 +0000)]
* ltmain.in (func_extract_archives) [darwin]: This didn't actually
work on a real fat archive, should do now.
* tests/func_extract_archives.test: remove darwin fat tests which
did not actually work.
Charles Wilson [Thu, 3 Feb 2005 15:01:21 +0000 (15:01 +0000)]
Backported from branch-2-0:
* ltmain.in (func_generate_dlsyms): addresses
in _preloaded_symbols[] cannot go into .rdata section
if symbols are DATA imported from DLL, on windows,
because runtime relocations must happen.
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS):
build exports for symbols in .rdata sections
Reid Spencer [Thu, 3 Feb 2005 12:58:07 +0000 (12:58 +0000)]
* ltmain.in (link mode) [cygwin]: Fix broken subdir path
computation, exposed by using `-dlopen self'. Fix broken sed
script exposed by additionally using `-export-symbols FILE'.
Peter O'Gorman [Thu, 3 Feb 2005 03:53:07 +0000 (03:53 +0000)]
* ltmain.in [darwin]: Don't add installed libs to temp_rpath when
building executables on darwin, or other systems which use
hardcode_automatic. It may break our wrapper scripts.
Ralf Wildenhues [Mon, 31 Jan 2005 17:32:18 +0000 (17:32 +0000)]
* libtool.m4 (AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): Unicos 9 sed rejects
empty parentheses as in 's/x()/1/'.
(AC_LIBTOOL_PROG_COMPILER_PIC) [unicos*]: wl=-Wl,.