]> git.ipfire.org Git - thirdparty/libtool.git/log
thirdparty/libtool.git
20 years ago* tests/defs.m4sh (scripts): Actually scan the generated ltmain.sh
Gary V. Vaughan [Thu, 7 Oct 2004 02:46:39 +0000 (02:46 +0000)] 
* tests/defs.m4sh (scripts): Actually scan the generated ltmain.sh
for shell portability problems.

20 years ago* m4/libtool.m4 (_LT_FORMAT_COMMENT): Shell meta-characters in
Gary V. Vaughan [Thu, 7 Oct 2004 02:17:01 +0000 (02:17 +0000)] 
* m4/libtool.m4 (_LT_FORMAT_COMMENT): Shell meta-characters in
_LT_DECL descriptions were not being escaped before injection into
TAG CONFIG here documents in config.status.

20 years ago* m4/libtool.m4 (_LT_PROG_CXX, _LT_PROG_F77): New macros to work
Peter O'Gorman [Wed, 6 Oct 2004 13:48:56 +0000 (13:48 +0000)] 
* m4/libtool.m4 (_LT_PROG_CXX, _LT_PROG_F77): New macros to work
around the deficiencies in AC_PROG_CXX and AC_PROG_F77.
* configure.ac: Cleaned up, having moved the checks for compilers
which do not exist to libtool.m4.

20 years ago* config/ltmain.m4sh [darwin]: Make the -dylib_file flag work on
Peter O'Gorman [Tue, 5 Oct 2004 04:15:28 +0000 (04:15 +0000)] 
* config/ltmain.m4sh [darwin]: Make the -dylib_file flag work on
older darwins too. Reported by Christoph Egger.

20 years ago* m4/libtool.m4 (_LT_PROG_ECHO_BACKSLASH): Don't confuse $ECHO
Gary V. Vaughan [Mon, 4 Oct 2004 17:06:35 +0000 (17:06 +0000)] 
* m4/libtool.m4 (_LT_PROG_ECHO_BACKSLASH): Don't confuse $ECHO
with $lt_ECHO, or we always get a libtool with ECHO=echo, rather
than testing for a mechanism that quotes  properly.
* NEWS: Updated.

20 years ago* config/ltmain.m4sh: Need to include getopt.m4sh earlier so that
Gary V. Vaughan [Mon, 4 Oct 2004 09:32:52 +0000 (09:32 +0000)] 
* config/ltmain.m4sh: Need to include getopt.m4sh earlier so that
progpath is set before it is called to --no-reexec.
* NEWS: Updated.

20 years agoWithout this change, the distributed libtool tarball has a
Gary V. Vaughan [Mon, 4 Oct 2004 08:59:34 +0000 (08:59 +0000)] 
Without this change, the distributed libtool tarball has a
dependency on autom4te.  There was some inconsistency in the
filenames: now we have foo.m4sh -> m4sh -> foo.in -> configure
-> foo[.sh].  Bootstrap runs the m4sh steps and the resulting .in
files are distributed.

* tests/Makefile.am (EXTRA_DIST): Distribute defs.m4sh.
* Makefile.am (EXTRA_DIST): Distribute libtoolize.m4sh.
(libtoolize.in, libtoolize): Split into bootstrap and runtime
stages.
($(top_srcdir)/tests/defs.in, $(top_srcdir)/tests/defs): Ditto.
($(top_srcdir)/config/ltmain.sh): Swap ltmain.m4sh and ltmain.in
names.
* bootstrap: Make libtoolize.in and tests/defs.in.
* NEWS: Updated.

20 years ago* README, README.alpha: Update notes regarding available VERBOSE
Bob Friesenhahn [Sun, 3 Oct 2004 23:17:12 +0000 (23:17 +0000)] 
* README, README.alpha: Update notes regarding available VERBOSE
settings.

20 years ago* config/ltmain.in: Change $XSED to $Xsed to fix hang noticed
Bob Friesenhahn [Sun, 3 Oct 2004 23:12:35 +0000 (23:12 +0000)] 
* config/ltmain.in: Change $XSED to $Xsed to fix hang noticed
under MinGW.
* tests/defs.in: Support VERBOSE=debug to enable shell tracing
while running tests.

20 years ago* NEWS: Updated.
Gary V. Vaughan [Sun, 3 Oct 2004 22:36:53 +0000 (22:36 +0000)] 
* NEWS: Updated.
* configure.ac: Bumped version to 1.9e.

20 years agoGNU libtool 1.9d was released. release-1-9d
Gary V. Vaughan [Sun, 3 Oct 2004 21:38:09 +0000 (21:38 +0000)] 
GNU libtool 1.9d was released.

* configure.ac: Bumped version to 1.9d.
* NEWS: Updated.

20 years ago* libltdl/lt__alloc.h (lt__alloc_die): Declare with LT_SCOPE as
Gary V. Vaughan [Sun, 3 Oct 2004 17:22:50 +0000 (17:22 +0000)] 
* libltdl/lt__alloc.h (lt__alloc_die): Declare with LT_SCOPE as
per Ralf's original patch.
Reported by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>

20 years ago* libltdl/Makefile.am (libltdlc_la_LIBADD): Don't use
Gary V. Vaughan [Sun, 3 Oct 2004 17:12:53 +0000 (17:12 +0000)] 
* libltdl/Makefile.am (libltdlc_la_LIBADD): Don't use
libdlloader_la_OBJECTS, an undocumented Automake internal
variable...
(libltdlc_la_SOURCES): ...use libdlloader_la_SOURCES here
instead.
Reported by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>

20 years ago* libltdl/argz_.h: Forgot to spell lt_system.h with just one `_'.
Gary V. Vaughan [Sun, 3 Oct 2004 16:15:59 +0000 (16:15 +0000)] 
* libltdl/argz_.h: Forgot to spell lt_system.h with just one `_'.

20 years ago* libltdl/argz_.h: Forgot to include lt__system.h for LT_SCOPE
Gary V. Vaughan [Sun, 3 Oct 2004 15:44:36 +0000 (15:44 +0000)] 
* libltdl/argz_.h: Forgot to include lt__system.h for LT_SCOPE
definition.

20 years ago* libltdl/lt__alloc.h: Declare exported functions with LT_SCOPE
Ralf Wildenhues [Sun, 3 Oct 2004 13:50:10 +0000 (13:50 +0000)] 
* libltdl/lt__alloc.h: Declare exported functions with LT_SCOPE
for mingw32.
* libltdl/lt__dirent.h: Ditto.
* libltdl/argz._h: Ditto.  Be careful about not requiring
additional libltdl files when used outside of libltdl.
* libltdl/slist.h: Ditto.
* HACKING: Add a section on libltdl implementation layering.

20 years ago* tests/quote.test: echo is called ECHO now. Make sure we extract
Gary V. Vaughan [Sun, 3 Oct 2004 11:20:53 +0000 (11:20 +0000)] 
* tests/quote.test: echo is called ECHO now.  Make sure we extract
the value of ECHO from the libtool script.
Reported by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>

20 years ago* m4/libtool.m4 (hardcode_shlibpath_var) [darwin7*]: Revert my
Gary V. Vaughan [Sat, 2 Oct 2004 15:56:20 +0000 (15:56 +0000)] 
* m4/libtool.m4 (hardcode_shlibpath_var) [darwin7*]: Revert my
hack from 2004-09-30 now that I've removed /lib/hello.la and the
tests work properly for me again.

20 years agoInitial support for s390x-ibm-tpf:
Jim Tison [Sat, 2 Oct 2004 12:57:45 +0000 (12:57 +0000)] 
Initial support for s390x-ibm-tpf:

* m4/libtool.m4: Correct obvious spelling errors in remarks.
(_LT_ENABLE_LOCK): Make s390x-ibm-tpf hosts adopt elf64_s390
conventions.
(_LT_SYS_DYNAMIC_LINKER): Set defaults for s390x-ibm-tpf host.
(_LT_CHECK_MAGIC_METHOD): Skip all dependency checks for
s390x-ibm-tpf hosts.
(_LT_LINKER_SHLIBS): Make s390x-ibm-tpf hosts adopt GNU/Linux OS
attributes.
* NEWS: Updated.

20 years ago* config/ltmain.in (func_mode_install): Need to set $tmpdir before
Ralf Wildenhues [Fri, 1 Oct 2004 12:43:20 +0000 (12:43 +0000)] 
* config/ltmain.in (func_mode_install): Need to set $tmpdir before
using it.

20 years ago* config/ltmain.in (func_mode_link): Fix quoting bug. Fixes
Ralf Wildenhues [Fri, 1 Oct 2004 11:03:03 +0000 (11:03 +0000)] 
* config/ltmain.in (func_mode_link): Fix quoting bug.  Fixes
e.g. the quoting of the -export-symbols-regex argument in .la
files' relink_command.

20 years ago* libltdl/lt__alloc.c (lt__memdup): Allocation can fail, so we
Ralf Wildenhues [Fri, 1 Oct 2004 10:24:18 +0000 (10:24 +0000)] 
* libltdl/lt__alloc.c (lt__memdup): Allocation can fail, so we
need to guard against null pointer dereference here.
* libltdl/ltdl.c (lt_dlcaller_register): Ditto.

20 years ago* libltdl/slist.c (slist_foreach): result was declared as
Ralf Wildenhues [Fri, 1 Oct 2004 10:03:11 +0000 (10:03 +0000)] 
* libltdl/slist.c (slist_foreach): result was declared as
inner variable, shadowing the actually returned value.

20 years ago* libltdl/ltdl.c (load_deplibs, try_dlopen): Cast argument
Ralf Wildenhues [Fri, 1 Oct 2004 09:57:56 +0000 (09:57 +0000)] 
* libltdl/ltdl.c (load_deplibs, try_dlopen): Cast argument
to isspace/isalnum to the correct range.  Also, cast to int to
avoid compiler warnings.

20 years ago* libltdl/ltdl.c (try_dlopen): Fix null pointer dereference in
Ralf Wildenhues [Fri, 1 Oct 2004 02:55:50 +0000 (02:55 +0000)] 
* libltdl/ltdl.c (try_dlopen): Fix null pointer dereference in
case the name given to lt_dlopen contains no extension.

20 years ago* libltdl/lt_dlloader.c (lt_dlloader_remove), libltdl/ltdl.c
Ralf Wildenhues [Thu, 30 Sep 2004 21:56:13 +0000 (21:56 +0000)] 
* libltdl/lt_dlloader.c (lt_dlloader_remove), libltdl/ltdl.c
(tryall_dlopen, lt_dlhandle_next): Show usage of function pointers.

20 years ago* doc/libtool.texi (LT_INIT, Using libltdl)
Ralf Wildenhues [Thu, 30 Sep 2004 21:27:30 +0000 (21:27 +0000)] 
* doc/libtool.texi (LT_INIT, Using libltdl)
(Module loaders for libltdl, Multiple dependencies)
(libtool script contents): Fix several typos (trivial change).

20 years ago* m4/libtool.m4 (hardcode_shlibpath_var) [darwin7]: My Panther
Gary V. Vaughan [Thu, 30 Sep 2004 20:53:17 +0000 (20:53 +0000)] 
* m4/libtool.m4 (hardcode_shlibpath_var) [darwin7]: My Panther
workstation doesn't hardcode the shared library path, although it
used to, so this is more likely a function of the binutils and/or
gcc I am using at the moment.  The hardcode value setting code for
the configure script sucks at the moment though...
* (TODO): ...and needs to do a test compile instead of a table
lookup before 2.0 final.

20 years ago* m4/libtool.m4 (echo): Use ECHO throughout for consistency with
Gary V. Vaughan [Thu, 30 Sep 2004 15:13:22 +0000 (15:13 +0000)] 
* m4/libtool.m4 (echo): Use ECHO throughout for consistency with
config/ltmain.in.
Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

20 years ago* m4/libtool.m4 (rm): Use RM throughout for consistency with
Gary V. Vaughan [Thu, 30 Sep 2004 09:38:23 +0000 (09:38 +0000)] 
* m4/libtool.m4 (rm): Use RM throughout for consistency with
config/ltmain.in.
Reported by Charles Wilson <cwilson@spam.protected>

20 years ago* m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [darwin]: Don't echo gcc -v
Peter O'Gorman [Mon, 27 Sep 2004 14:56:08 +0000 (14:56 +0000)] 
* m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [darwin]: Don't echo gcc -v
output during configure. (Really this time, honest)

20 years ago* m4/libtool.m4 (_LT_LINKER_SHLIBS) [aix]: In archive_expsym_cmds,
Albert Chin-A-Young [Sun, 26 Sep 2004 20:01:26 +0000 (20:01 +0000)] 
* m4/libtool.m4 (_LT_LINKER_SHLIBS) [aix]: In archive_expsym_cmds,
move -bnoentry linker option before $compiler_flags to honor any
possible -e entries in LDFLAGS.

20 years ago* config/ltmain.in (func_mode_link): When linking an installed
Gary V. Vaughan [Sat, 25 Sep 2004 13:38:53 +0000 (13:38 +0000)] 
* config/ltmain.in (func_mode_link): When linking an installed
libtool library on the command line using -lfoo we need to find
the library in the search paths and add it's dependency_libs to
the link in the conv pass so that any libtool libs listed are
correctly expanded in the link pass.

20 years ago* libtool.m4 (_LT_SYS_DYNAMIC_LINKER): Revert changeset from
Charles Wilson [Fri, 24 Sep 2004 16:18:01 +0000 (16:18 +0000)] 
* libtool.m4 (_LT_SYS_DYNAMIC_LINKER): Revert changeset from
`2004-09-22  Charles Wilson  <cwilson@spam.protected>'.

20 years ago* config/general.m4sh (Xsed): Set a default when not used from
Gary V. Vaughan [Fri, 24 Sep 2004 16:08:33 +0000 (16:08 +0000)] 
* config/general.m4sh (Xsed): Set a default when not used from
ltmain.in.
(ECHO): Audit for (and correct!) uses of $ECHO with more than one
argument, which breaks when ECHO='printf %sn', and with possible
`-' as first character of the argument, which breaks `print -r'
and some implementations of `echo'.
* config/ltmain.in, tests/defs.in, libtoolize.in (ECHO): Ditto.
Reported by Albert Chin-A-Young <china@thewrittenword.com>

20 years ago* m4/libtool.m4 (_LT_CMD_STRIPLIB) [darwin]: strip archives too.
Peter O'Gorman [Fri, 24 Sep 2004 15:17:19 +0000 (15:17 +0000)] 
* m4/libtool.m4 (_LT_CMD_STRIPLIB) [darwin]: strip archives too.

20 years ago* m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [darwin]: Don't echo gcc -v
Peter O'Gorman [Fri, 24 Sep 2004 14:59:23 +0000 (14:59 +0000)] 
* m4/libtool.m4 (_LT_LANG_CXX_CONFIG) [darwin]: Don't echo gcc -v
output during configure.

20 years ago* m4/libtool.m4 (_LT_DECL_EGREP): Only the newest CVS autoconf
Gary V. Vaughan [Fri, 24 Sep 2004 12:51:24 +0000 (12:51 +0000)] 
* m4/libtool.m4 (_LT_DECL_EGREP): Only the newest CVS autoconf
AC_SUBSTs for GREP.  Do our own here too to cater for release
autoconfen.

20 years ago* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [openbsd3.3]: Set
Gary V. Vaughan [Fri, 24 Sep 2004 10:15:16 +0000 (10:15 +0000)] 
* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [openbsd3.3]: Set
need_version to yes or no depending on the os release.
Reported by Dalibor Topic <robilad@kaffe.org>

20 years ago* tests/cdemo-conf.test, tests/cdemo-exec.test,
Gary V. Vaughan [Thu, 23 Sep 2004 14:50:36 +0000 (14:50 +0000)] 
* tests/cdemo-conf.test, tests/cdemo-exec.test,
tests/cdemo-make.test, tests/cdemo-shared.test,
tests/cdemo-static.test, tests/demo-conf.test,
tests/demo-deplibs.test, tests/demo-exec.test,
tests/demo-hardcode.test, tests/demo-inst.test,
tests/demo-make.test, tests/demo-nofast.test,
tests/demo-noinst-link.test, tests/demo-nopic.test,
tests/demo-pic.test, tests/demo-relink.test,
tests/demo-shared.test, tests/demo-static.test,
tests/demo-unst.test, tests/depdemo-conf.test,
tests/depdemo-exec.test, tests/depdemo-inst.test,
tests/depdemo-make.test, tests/depdemo-nofast.test,
tests/depdemo-relink.test, tests/depdemo-shared.test,
tests/depdemo-static.test, tests/depdemo-unst.test,
tests/f77demo-conf.test, tests/f77demo-exec.test,
tests/f77demo-make.test, tests/f77demo-shared.test,
tests/f77demo-static.test, tests/link-2.test, tests/link.test,
tests/mdemo-conf.test, tests/mdemo-dryrun.test,
tests/mdemo-exec.test, tests/mdemo-inst.test,
tests/mdemo-make.test, tests/mdemo-shared.test,
tests/mdemo-static.test, tests/mdemo-unst.test,
tests/mdemo2-conf.test, tests/mdemo2-exec.test,
tests/mdemo2-make.test, tests/nomode.test, tests/pdemo-conf.test,
tests/pdemo-exec.test, tests/pdemo-inst.test,
tests/pdemo-make.test, tests/quote.test, tests/sh.test,
tests/suffix.test, tests/tagdemo-conf.test,
tests/tagdemo-exec.test, tests/tagdemo-make.test,
tests/tagdemo-shared.test, tests/tagdemo-static.test,
tests/tagtrace.test: POSIX `.' searches only in user's $PATH, so
we must use `. ./defs' to source the common code.
Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>

20 years ago* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Gah. Merge error
Gary V. Vaughan [Thu, 23 Sep 2004 13:46:46 +0000 (13:46 +0000)] 
* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Gah.  Merge error
corrected.

20 years agoSince defs can change (path to grep for example) when it is made
Gary V. Vaughan [Thu, 23 Sep 2004 13:07:15 +0000 (13:07 +0000)] 
Since defs can change (path to grep for example) when it is made
for a different host, it can't be shipped.  That also means that
defs will always be generated in the build tree, so each test case
can have the srcdir discovery factored away into tests/defs.in:

* Makefile.am (EXTRA_DIST): s/defs/defs.in/g
* tests/Makefile.am (defs): New rule to remake defs from the
parent directory's Makefile.
* tests/cdemo-conf.test, tests/cdemo-exec.test,
tests/cdemo-make.test, tests/cdemo-shared.test,
tests/cdemo-static.test, tests/demo-conf.test,
tests/demo-deplibs.test, tests/demo-exec.test,
tests/demo-hardcode.test, tests/demo-inst.test,
tests/demo-make.test, tests/demo-nofast.test,
tests/demo-noinst-link.test, tests/demo-nopic.test,
tests/demo-pic.test, tests/demo-relink.test,
tests/demo-shared.test, tests/demo-static.test,
tests/demo-unst.test, tests/depdemo-conf.test,
tests/depdemo-exec.test, tests/depdemo-inst.test,
tests/depdemo-make.test, tests/depdemo-nofast.test,
tests/depdemo-relink.test, tests/depdemo-shared.test,
tests/depdemo-static.test, tests/depdemo-unst.test,
tests/f77demo-conf.test, tests/f77demo-exec.test,
tests/f77demo-make.test, tests/f77demo-shared.test,
tests/f77demo-static.test, tests/link-2.test, tests/link.test,
tests/mdemo-conf.test, tests/mdemo-dryrun.test,
tests/mdemo-exec.test, tests/mdemo-inst.test,
tests/mdemo-make.test, tests/mdemo-shared.test,
tests/mdemo-static.test, tests/mdemo-unst.test,
tests/mdemo2-conf.test, tests/mdemo2-exec.test,
tests/mdemo2-make.test, tests/nomode.test, tests/pdemo-conf.test,
tests/pdemo-exec.test, tests/pdemo-inst.test,
tests/pdemo-make.test, tests/quote.test, tests/sh.test,
tests/suffix.test, tests/tagdemo-conf.test,
tests/tagdemo-exec.test, tests/tagdemo-make.test,
tests/tagdemo-shared.test, tests/tagdemo-static.test,
tests/tagtrace.test: Removed srcdir discovery boilerplate...
* tests/defs.in: ...and put it here.

20 years ago* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): move symcode calculation
Ralf Wildenhues [Thu, 23 Sep 2004 12:26:40 +0000 (12:26 +0000)] 
* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): move symcode calculation
to correct place.
* doc/libtool.texi (libtool script contents): update description
of global_symbol_to_cdecl.

20 years ago* configure.ac (M4SH): AC_SUBST m4sh expander.
Gary V. Vaughan [Thu, 23 Sep 2004 01:16:41 +0000 (01:16 +0000)] 
* configure.ac (M4SH): AC_SUBST m4sh expander.
* config/general.m4sh, config/getopt.m4sh: New files with factored
out functionality from...
* config/ltmain.in, libtoolize.in: ...here.  m4_include the shared
code, and call AS_SHELL_SANITIZE.  Also quote all `[' and `]' to
survive m4 run.
(func_serial): No need to double up m4sh quotes after a `#'.
(func_check_macros): Escape `dnl' to stop m4sh interpreting it as
a macro.
* tests/defs.in: New file expanded into tests/defs by autom4te.
* m4/libtool.m4 (_LT_DECL_EGREP): Also require fgrep for the tests
that use it.
* Makefile.am ($(top_srcdir)/config/ltmain.sh): Now built with
M4SH.
(libtoolize): Ditto.
* bootstrap: Set M4SH for call to make.
* HACKING: No need to sync to AS_SHELL_SANITIZE by hand any more.

20 years ago* m4/libtool.m4: _LT_DECL uppercase ECHO.
Gary V. Vaughan [Thu, 23 Sep 2004 00:13:02 +0000 (00:13 +0000)] 
* m4/libtool.m4: _LT_DECL uppercase ECHO.
* config/ltmain.in: Use it throughout.
(func_mkdir_p): Now matches the other implementations in
tests/defs and libtoolize.in.
* tests/sh.test: Updated to detect ECHO misuse.

20 years ago* config/ltmain.in (func_mode_link): Propagate a convenience
Gary V. Vaughan [Wed, 22 Sep 2004 23:31:27 +0000 (23:31 +0000)] 
* config/ltmain.in (func_mode_link): Propagate a convenience
library's dependency libs correctly when it is being linked into a
libtool library.  Deplibs are now propagated whether libdir is set
or not.

20 years agoThe dlpreopen pass over libraries reverses the elements in the
Andreas Schwab [Wed, 22 Sep 2004 22:46:12 +0000 (22:46 +0000)] 
The dlpreopen pass over libraries reverses the elements in the
$deplibs list.  This causes problems when the link pass tries to
find libraries when they are located in non-standard places
denoted by -L options.  Due to the reversed order these -L options
occur after the libraries that need them, and they are not found:

* config/ltmain.in: (Un)Reverse $deplibs list at the start of the
link pass in lib mode.

20 years ago* ltmain.in (func_generate_dlsyms) [cygwin, mingw]: when creating
Charles Wilson [Wed, 22 Sep 2004 08:50:34 +0000 (08:50 +0000)] 
* ltmain.in (func_generate_dlsyms) [cygwin, mingw]: when creating
a .exp file for an executable, also create a .def file, and add
that file to the link command via SYMFILES.  This causes binutils
to generate an .edata section, and allows self dlopening to work.
* NEWS: Updated.

20 years ago* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): better quoting for
Charles Wilson [Wed, 22 Sep 2004 08:11:49 +0000 (08:11 +0000)] 
* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): better quoting for
postinstall_cmds and postuninstall_cmds to allow spaces in install
paths.

20 years ago* config/ltmain.in (func_generate_dlsyms): Addresses in
Charles Wilson [Wed, 22 Sep 2004 07:40:25 +0000 (07:40 +0000)] 
* config/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.
* m4/libtool.m4 (_LT_LINKER_SHLIBS([TAGNAME])): Build exports for
symbols in .rdata sections.

20 years agoThe checks in assign.test are trying to catch case of this ilk:
Gary V. Vaughan [Sun, 19 Sep 2004 23:21:45 +0000 (23:21 +0000)] 
The checks in assign.test are trying to catch case of this ilk:
`foo=bar break', but unfortunately they also choke on `foo=bar;
break' and `foo=bar && break'.  Writing a sophisticated test to
catch just the intended case seems like more trouble than it's
worth, but leaving the test in causes the testsuite to fail on
valid m4sh output:

* tests/assign.test: Removed; chokes on perfectly valid shell
syntax.
* tests/Makefile.am (COMMON_TESTS): Remove assign.test.
* tests/defs.in (scripts): Don't check the m4sh inputs, go back
to checking the generated ltmain.sh script.

20 years agoReported by Roberto Bagnara <bagnara@cs.unipr.it>
Gary V. Vaughan [Sun, 19 Sep 2004 22:11:38 +0000 (22:11 +0000)] 
Reported by Roberto Bagnara <bagnara@cs.unipr.it>

20 years ago* config/ltmain.in (func_echo): Except for multi-line warnings and
Gary V. Vaughan [Fri, 17 Sep 2004 17:12:17 +0000 (17:12 +0000)] 
* config/ltmain.in (func_echo): Except for multi-line warnings and
errors, always use func_echo.  $show is for command output, and
$echo is for internal use in backtick expressions and similar.

20 years agoMissed a couple of MKDIR_P references in ltmain.in in my last
Gary V. Vaughan [Fri, 17 Sep 2004 14:13:04 +0000 (14:13 +0000)] 
Missed a couple of MKDIR_P references in ltmain.in in my last
patch; fix them carefully.  Introduce an opt_dry_run to ltmain.in
so that the implementations of func_mkdir_p can converge, and a
func_mktempdir to do a better job of temporary directory creation:

* libtoolize.in (func_mkdir_p): Don't fail if the directory wasn't
created in dry run mode.
* tests/defs (func_mkdir_p): Ditto.  We don't actually have a dry
run mode for the tests, but the function is written carefully to
be kept in synch and work correctly here too.
* config/ltmain.in (func_mkdir_p): Ditto.  This copy of the
function now only differs in its use of $echo over $ECHO.
(func_extract_archive): Removed first redundant mkdir call.
(func_mktempdir): New function that tries to avoid races when
making temporary directories.
(opt_dry_run): Set this if --dry-run is given at the CLI, or if
tests/mdemo-dryrun.test has forced the value of $run.
(func_mode_install): Call $MKDIR directly and error out if the
directory cannot be created.
(func_mode_link): Rather than copying func_mkdir_p into the
wrapper script as a replacement for $MKDIR_P, we know that the
script won't be called my `make -j', so write the current value of
$MKDIR.

20 years ago* m4/libtool.m4: remove an extra "]"
Peter O'Gorman [Fri, 17 Sep 2004 13:54:05 +0000 (13:54 +0000)] 
* m4/libtool.m4: remove an extra "]"

20 years ago* m4/libtool.m4 [darwin] (_LT_LANG_CXX_CONFIG): Changes for 10.4.
Peter O'Gorman [Fri, 17 Sep 2004 13:41:54 +0000 (13:41 +0000)] 
* m4/libtool.m4 [darwin] (_LT_LANG_CXX_CONFIG): Changes for 10.4.
* config/libtool.in [darwin]: ditto.

20 years agoMy most recent `2004-09-02 Gary V. Vaughan' patch for mkdir_p
Gary V. Vaughan [Thu, 16 Sep 2004 14:57:02 +0000 (14:57 +0000)] 
My most recent `2004-09-02 Gary V. Vaughan' patch for mkdir_p
below is horrendously broken since it makes the installed libtool
try to run the mkinstalldirs or install-sh helper scripts.  This
patch fixes the `make -j' mkdir race condition internally:

* libtoolize.in (func_mkdir_p): New slice and dice algorithm
to build the directory tree one dir at a time, ignoring errors
until the end incase they are transient due to a concurrent
identical mkdir.
* tests/defs (func_mkdir_p): Ditto.
* config/ltmain.in (func_mkdir_p): Ditto, except that ltmain.in
uses $echo rather than $ECHO, and uses $show and $run to interact
correctly with the command line.
* configure.ac (AM_INIT_AUTOMAKE): 1.8 is sufficient again.
* Makefile.am (edit): Don't substitute automake's $(mkdir_p).
* NEWS: Updated.

20 years ago* libltdl/loaders/loadlibrary.c: Compilation fixes (originally
Bob Friesenhahn [Wed, 15 Sep 2004 18:24:00 +0000 (18:24 +0000)] 
* libltdl/loaders/loadlibrary.c: Compilation fixes (originally
from Gary V. Vaughan) to compile under MinGW.
* config/mkstamp: Translate input data so that it is assured to
use the Unix line terminations. This is necessary under Windows if
the files are checked out with CR/NL line terminations. A
side-effect of this change is that input must always be from
stdin. Previously a filename argument was accepted as well.

20 years ago* tests/Makefile.am: Use the same CPP, F77, CXX and CXXFLAGS
Ralf Wildenhues [Wed, 15 Sep 2004 13:04:24 +0000 (13:04 +0000)] 
* tests/Makefile.am: Use the same CPP, F77, CXX and CXXFLAGS
for the test suite.

20 years ago* m4/libtool.m4 (_LT_ENABLE_LOCK):Replace AC_TRY_LINK with
Ralf Wildenhues [Wed, 15 Sep 2004 01:39:18 +0000 (01:39 +0000)] 
* m4/libtool.m4 (_LT_ENABLE_LOCK):Replace AC_TRY_LINK with
AC_LINK_IFELSE to get rid of `autoconf -Wobsolete' warning.
* m4/ltdl.m4 (LT_LIB_DLLOAD): Ditto.

20 years ago* config/ltmain.in (func_quote_for_eval): Set a return value to
Gary V. Vaughan [Wed, 15 Sep 2004 01:25:36 +0000 (01:25 +0000)] 
* config/ltmain.in (func_quote_for_eval): Set a return value to
avoid forking at every call.  Changed all callers.
(func_mode_link): Simplified, and removed the final non-portable
nested escaped double quotes in back quotes usage in the process.

20 years ago* config/ltmain.in (func_quote_for_eval): Factor out the ugly
Gary V. Vaughan [Tue, 14 Sep 2004 22:47:11 +0000 (22:47 +0000)] 
* config/ltmain.in (func_quote_for_eval): Factor out the ugly
shell meta-character quoting.  Changed all callers.

20 years ago* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Simplification:
Ralf Wildenhues [Tue, 14 Sep 2004 22:10:37 +0000 (22:10 +0000)] 
* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Simplification:
distinguish between data and code symbols on every system.

20 years agoUnfortunately, libtool has no way of telling if unrecognized
Albert Chin-A-Young [Tue, 14 Sep 2004 21:23:43 +0000 (21:23 +0000)] 
Unfortunately, libtool has no way of telling if unrecognized
compiler flags need an argument or not, and can disect options and
pass parts through incorrectly.  This changeset reverts both
2004-09-06 Albert Chin-A-Young (topmost) and 2004-09-05 Albert
Chin-A-Young below, and recognises more options explicitly:

* config/ltmain.in (func_mode_link): Pass through options needed
to compile in 64-bit mode with gcc, and the SGI, Sun, HP and IBM
compilers.

20 years ago* m4/libtool.m4 (_LT_CMD_GLOBALS_SYMBOLS): Fix a typo I made when
Gary V. Vaughan [Mon, 13 Sep 2004 08:23:04 +0000 (08:23 +0000)] 
* m4/libtool.m4 (_LT_CMD_GLOBALS_SYMBOLS): Fix a typo I made when
applying 2004-09-11 Ralf Wildenhues.

20 years ago* libtool.m4: Fixes for the OpenBSD support
Brad [Sun, 12 Sep 2004 13:50:19 +0000 (13:50 +0000)] 
* libtool.m4: Fixes for the OpenBSD support

20 years agoOur fortran tests were not very good. All the libraries created
Peter O'Gorman [Sun, 12 Sep 2004 13:36:17 +0000 (13:36 +0000)] 
Our fortran tests were not very good. All the libraries created
were convenience libs, so we did not test the creation of shared
libraries on any platform. Also none of the libs used any actual
fortran library calls, adding a call to write(*,*) in each lib
causes the tests to fail on darwin (and presumably other platforms).
These new tests would likely cause many more fortran test failures,
so if there is an error during make it is reported as SKIP.

* tests/f77demo-make.test: Don't fail hard, skip on failure.
* tests/f77demo/foof2.f: New file.
* tests/f77demo/foof3.f: New file.
* tests/f77demo/fprogram.f: Call routine in new lib.
* tests/f77demo/foof.f: Call routine in another new lib.
* tests/f77demo/Makefile.am: Make a couple of new libraries, add
$(FLIBS) to cprogram LDADD.

20 years ago* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): The linker distinguishes
Ralf Wildenhues [Sat, 11 Sep 2004 00:50:27 +0000 (00:50 +0000)] 
* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): The linker distinguishes
data and code symbols on linux-gnu/ia64.  Fixes multiple testsuite
failures.
* NEWS: Updated.

20 years ago* libltdl/loaders/shl_load.c (get_vtable): Typo.
Gary V. Vaughan [Mon, 6 Sep 2004 00:51:38 +0000 (00:51 +0000)] 
* libltdl/loaders/shl_load.c (get_vtable): Typo.

20 years agoHopefully, passing unrecognised compiler arguments through
Albert Chin-A-Young [Mon, 6 Sep 2004 00:11:00 +0000 (00:11 +0000)] 
Hopefully, passing unrecognised compiler arguments through
unmolested will prove to be a good plan for the 2.0 release.  If
it goes awry, we can get back to where we were by reverting this
patch and the 2004-09-05 Albert Chin-A-Young patch, aka
gary@gnu.org--2004/libtool--devo--1.0--patch-169,172:

* config/ltmain.in (func_mode_link): Because we now pass through
compiler arguments we doesn't recognize, the code to pass
through GCC's -m* arguments is not needed.

20 years ago* Makefile.am (clean-ltmain-sh): Using '==' to test for equality
Albert Chin-A-Young [Sun, 5 Sep 2004 23:59:39 +0000 (23:59 +0000)] 
* Makefile.am (clean-ltmain-sh): Using '==' to test for equality
in a shell script is not portable. Use '=' instead.

20 years ago* m4/ltdl.m4 (LT_WITH_LTDL): Remove excess quoting in argument of
Andreas Schwab [Sun, 5 Sep 2004 21:52:45 +0000 (21:52 +0000)] 
* m4/ltdl.m4 (LT_WITH_LTDL): Remove excess quoting in argument of
AC_CONFIG_SUBDIRS.

20 years ago* config/ltmain.in (func_mode_link): Pass otherwise unrecognised +
Albert Chin-A-Young [Sun, 5 Sep 2004 18:10:03 +0000 (18:10 +0000)] 
* config/ltmain.in (func_mode_link): Pass otherwise unrecognised +
and - style switches to the compiler.
* NEWS: Updated.

20 years ago* Makefile.am (libtool): Force libtool to be regenerated if
Gary V. Vaughan [Sun, 5 Sep 2004 18:00:56 +0000 (18:00 +0000)] 
* Makefile.am (libtool): Force libtool to be regenerated if
stamp-vcl has changed.

20 years ago* m4/libtool.m4, config/ltmain.in: When calling $LTCC,
Albert Chin-A-Young [Sun, 5 Sep 2004 17:35:16 +0000 (17:35 +0000)] 
* m4/libtool.m4, config/ltmain.in: When calling $LTCC,
pass default $CFLAGS through with $LTCFLAGS.

20 years ago* config/ltmain.in (func_mode_link): Use $pic_object as
David Edelsohn [Fri, 3 Sep 2004 13:02:33 +0000 (13:02 +0000)] 
* config/ltmain.in (func_mode_link): Use $pic_object as
$non_pic_object if $non_pic_object=none.
* NEWS: Updated.

20 years ago* bootstrap: Remember that the ltmain.sh generated by bootstrap
Gary V. Vaughan [Fri, 3 Sep 2004 08:10:21 +0000 (08:10 +0000)] 
* bootstrap: Remember that the ltmain.sh generated by bootstrap
is missing most of its substitution values, so force it to be
rebuilt at make time by touching $(top_srcdir)/config/ltmain.in.

20 years agoFrom Martin Quinson <mquinson@ens-lyon.fr>
Gary V. Vaughan [Fri, 3 Sep 2004 01:54:37 +0000 (01:54 +0000)] 
From Martin Quinson <mquinson@ens-lyon.fr>
* m4/libtool.m4 (_LT_SETUP, _LT_ENABLE_LOCK, LT_PATH_LD): Use
AS_HELP_STRING to get rid of autoconf -Wobsolete warning
messages.
* m4/ltdl.m4 (LT_WITH_LTDL, _LT_ENABLE_INSTALL): Ditto.
* m4/ltoptions.m4 (_LT_ENABLE_SHARED, _LT_ENABLE_STATIC)
(_LT_ENABLE_FAST_INSTALL, _LT_WITH_PIC): Ditto.
* TODO: Updated

20 years ago* libltdl/slist.c (slist_cons): Don't leak the tail of a list.
Ralf Wildenhues [Fri, 3 Sep 2004 01:31:58 +0000 (01:31 +0000)] 
* libltdl/slist.c (slist_cons): Don't leak the tail of a list.

20 years ago* m4/libtool.m4 (_LT_ENABLE_LOCK): Reformatted.
Albert Chin-A-Young [Fri, 3 Sep 2004 00:44:04 +0000 (00:44 +0000)] 
* m4/libtool.m4 (_LT_ENABLE_LOCK): Reformatted.

20 years ago* HACKING: Explain how to verify detached signatures with gpg in
Gary V. Vaughan [Fri, 3 Sep 2004 00:34:48 +0000 (00:34 +0000)] 
* HACKING: Explain how to verify detached signatures with gpg in
the release announcement templates.

20 years ago* AUTHORS: Fix typo in my address.
Gary V. Vaughan [Fri, 3 Sep 2004 00:29:52 +0000 (00:29 +0000)] 
* AUTHORS: Fix typo in my address.

20 years agoBuilds of packages that use libtool and make -j produce "directory
Gary V. Vaughan [Fri, 3 Sep 2004 00:26:37 +0000 (00:26 +0000)] 
Builds of packages that use libtool and make -j produce "directory
already exists warnings" for .lib directory.  Build on automake
wisdom to support make -j builds where a suitable mkdir is
available:

* configure.ac (AM_INIT_AUTOMAKE): Require 1.9, which goes to some
trouble to find a $(mkdir_p) that doesn't interfere with make -j.
* Makefile.am (edit): Substitute for @mkdir_p@.
* config/ltmain.in (MKDIR_P): Take @mkdir_p@ value.
(mkdir): Removed.
(func_mkdir_p): New function to use $MKDIR_P.  Factor out all
previous mkdir calls to use this function.
(RM, MV): Declared as in libtoolize.in.  Changed all callers.
* libtoolize.in (MKDIR_P): Take @mkdir_p@ value from automake.
(func_mkdir_p): Use it, similarly to new config/ltmain.in.
* tests/defs: Synchronize boiler plate code with ltmain.in.
Adjust all callers.
Add missing copyright preamble.
* tests/demo-static.test: Add missing copyright preamble.
Reported by Daniel Reed <n@ml.org>

20 years ago* Makefile.am (clean-ltmain-sh): Quote $(top_builddir) for the
Gary V. Vaughan [Thu, 2 Sep 2004 15:33:35 +0000 (15:33 +0000)] 
* Makefile.am (clean-ltmain-sh): Quote $(top_builddir) for the
shell, incase it is not set when running maintainer rules with
`make -fMakefile.maint'.
Don't show the shell commands.

20 years ago* AUTHORS: Fix my email address.
Gary V. Vaughan [Thu, 2 Sep 2004 15:26:49 +0000 (15:26 +0000)] 
* AUTHORS: Fix my email address.

20 years ago* libltdl/ltdl.c (try_dlopen): Fix memory leak.
Ralf Wildenhues [Thu, 2 Sep 2004 13:27:24 +0000 (13:27 +0000)] 
* libltdl/ltdl.c (try_dlopen): Fix memory leak.
* NEWS: Updated.

20 years ago* libltdl/slist.c, libltdl/slist.h: Merge in changes from latest
Gary V. Vaughan [Thu, 2 Sep 2004 12:55:32 +0000 (12:55 +0000)] 
* libltdl/slist.c, libltdl/slist.h: Merge in changes from latest
upstream.  Mostly comments, formal item boxing, a sort function,
and const madness reduction.
(slist_new): Removed.
(slist_box, slist_unbox, slist_sort): New.
(SListCompare, SListCallback): Swapped!
(slist_remove, slist_find): Change order of parameters for
orthogonality with slist_foreach.  Changed all callers.
* libltdl/lt_dlloader.c (loader_cmp): Renamed to...
(loader_callback): ...this.  Return boxed item.
(lt_dlloader_remove): Adjust to new loader_callback semantics;
unbox each removed item before returning.
Remove unused variable.
Remove const from name parameter, since the slist API cannot
guarantee userdata const-ancy for its callback functions.
(lt_dlloader_find): Adjust to new loader_callback semantics; need
to return the contents of the boxed item.
Remove const from name parameter, since the slist API cannot
guarantee userdata const-ancy for its callback functions.
* libltdl/lt_dlloader.h (lt_dlloader_find, lt_dlloader_remove):
Adjust to new constless footprint.
* libltdl/ltdl.c (ltdl_exit): The global `loaders' list is changed
variable `loader' is invalidated.  Since some loaders may be
resident modules that cannot be unloaded (though we have none
yet), we must save each `next' address before calling
`lt_dlloader_remove'.
* NEWS: Updated.
* THANKS: Added Ralf.

20 years ago* libltdl/lt_dlloader.c (lt_dlloader_add): Handle malloc failure
Gary V. Vaughan [Wed, 1 Sep 2004 17:32:09 +0000 (17:32 +0000)] 
* libltdl/lt_dlloader.c (lt_dlloader_add): Handle malloc failure
from slist_new.
* libltdl/ltdl.c (loader_init): Trust lt_dlloader_add(), don't
overwrite its error type, and simplify.
Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

20 years ago* libltdl/slist.c (slist_new): Handle malloc failure gracefully.
Ralf Wildenhues [Wed, 1 Sep 2004 15:31:34 +0000 (15:31 +0000)] 
* libltdl/slist.c (slist_new): Handle malloc failure gracefully.

20 years ago* libtoolize.in, config/ltmain.in: Add CDPATH protection to
Gary V. Vaughan [Wed, 1 Sep 2004 09:48:25 +0000 (09:48 +0000)] 
* libtoolize.in, config/ltmain.in: Add CDPATH protection to
preamble.
* tests/defs: Put a full m4sh.m4 style 'Be Bourne compatible'
preamble in here too.
* HACKING: Note that tests/defs needs synching with m4sh.m4 too.
* TODO: Add new item.

20 years ago* libltdl/ltdl.c (try_dlopen, lt_dlforeachfile): Use correct cpp
Gary V. Vaughan [Wed, 1 Sep 2004 08:51:35 +0000 (08:51 +0000)] 
* libltdl/ltdl.c (try_dlopen, lt_dlforeachfile): Use correct cpp
macro name, LT_DLSEARCH_PATH.

20 years ago* libltdl/ltdl.c (lt_dlexit, tryall_dlopen): Fix gcc parentheses
Gary V. Vaughan [Wed, 1 Sep 2004 08:30:13 +0000 (08:30 +0000)] 
* libltdl/ltdl.c (lt_dlexit, tryall_dlopen): Fix gcc parentheses
warning.
(foreach_dirinpath, try_dlopen, lt_dlpath_insertdir): Fix gcc
signed vs unsigned warning.
Reported by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>

20 years ago* m4/libtool.m4 (_LT_PROG_LTMAIN): Simplified in light of
Gary V. Vaughan [Wed, 1 Sep 2004 08:03:05 +0000 (08:03 +0000)] 
* m4/libtool.m4 (_LT_PROG_LTMAIN): Simplified in light of
ltmain.sh no longer being in the build tree.
Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

20 years ago* libltdl/loaders/preopen.c: Initialise memory in get_vtable.
Ralf Wildenhues [Wed, 1 Sep 2004 01:43:18 +0000 (01:43 +0000)] 
* libltdl/loaders/preopen.c: Initialise memory in get_vtable.

20 years ago* tests/sh.test: Look in the source tree for ltmain.sh.
Ralf Wildenhues [Wed, 1 Sep 2004 01:33:04 +0000 (01:33 +0000)] 
* tests/sh.test: Look in the source tree for ltmain.sh.

20 years agoDon't use C99 flexible array types as we want to be C89
Gary V. Vaughan [Wed, 1 Sep 2004 01:22:26 +0000 (01:22 +0000)] 
Don't use C99 flexible array types as we want to be C89
compatible.  Instead, revert to the old way of doing things with
an array of symbol name vs. address, and adding the originator as
the first symbol but with a NULL address:

* config/ltmain.in (func_extract_dlsyms): Store originator as a
NULL address symbol.
* libltdl/ltdl.h (lt_dlsymbol): Removed.
(lt_dlsymlist): Remove originator field.
(LTDL_SET_PRELOADED_SYMBOLS): Adjust.
* libltdl/loaders/preopen.c (vm_open, lt_dlpreload_open): Adjust
for new types.
(vm_sym): Skip the new originator symbol when scanning symbol
names.
* m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Adjust preloaded symbols
test file to match.
* NEWS: Updated.

20 years agoLibtool currently assumes that certain characteristics, such as
Gary V. Vaughan [Tue, 31 Aug 2004 23:57:04 +0000 (23:57 +0000)] 
Libtool currently assumes that certain characteristics, such as
enable_shared, apply to the host architecture rather than per-
language.  Running the tests over a broken compiler can corrupt
these values, when there is no C++ compiler for example, so we
skip most of the tests in those cases.

* m4/libtool.m4 (_LT_LANG_CXX_CONFIG): If caught_CXX_compiler was
set from configure.ac, then don't run all the compiler tests.
(_LT_LANG_F77_CONFIG): Similarly for caught_F77_compiler.

20 years ago* Makefile.am (clean-ltmain-sh): Remove stale config/ltmain.sh
Gary V. Vaughan [Tue, 31 Aug 2004 14:24:26 +0000 (14:24 +0000)] 
* Makefile.am (clean-ltmain-sh): Remove stale config/ltmain.sh
from the build tree that were left behind by previous versions of
libtool.
($top_srcdir)/stamp-vcl: Since this rule is already called on
every invocation of make, hook clean-ltmain-sh in here too.
Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

20 years ago* bootstrap: Update warning message to reflect having split
Ralf Wildenhues [Tue, 31 Aug 2004 10:49:12 +0000 (10:49 +0000)] 
* bootstrap: Update warning message to reflect having split
libtool.m4 into several files.
Also, add config/ltmain.sh to list of stale files from previous
versions to be removed before bootstrap.

20 years ago* libltdl/ltdl.c: Replace strdup with lt__strdup.
Ralf Wildenhues [Tue, 31 Aug 2004 10:39:35 +0000 (10:39 +0000)] 
* libltdl/ltdl.c: Replace strdup with lt__strdup.