Commit Graph

3766 Commits

Author SHA1 Message Date
Xin LI
49ae2888b4 Avoid problems when FreeBSD goes to version 10.
* libltdl/m4/libtool.m4: Remove mentions of freebsd1. Use dots
	for FreeBSD 2 and 3 detection to avoid future problems
	* libltdl/m4/ltmain.m4sh: ditto.
2011-10-02 10:02:18 -05:00
Cristophe Jarry
920da81be6 Avoid mentioning "Linux", use "GNU/Linux", if appropriate.
* TODO: Don't use bare "Linux".
	* doc/libtool.texi: ditto.
	* doc/notes.texi: ditto.
	* libltdl/README: ditto.
	* libltdl/m4/libtool.m4: ditto.
2011-09-25 17:49:43 -05:00
Peter O'Gorman
dc28c2bfbc Add flag to inhibit warnings.
* libltdl/config/ltmain.m4sh: Add --no-warn, --no-warning flags.
Reported by John Davd Anglin.
2011-09-01 18:45:03 -05:00
Kurt Roeckx
d5d35c47e1 tagdemo: do not rely on picking up symbols from indirect deps.
* tests/tagdemo/Makefile.am: Link to all libraries that the
demo application uses.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-04-10 10:23:55 +02:00
Svante Signell
1ea9302bd1 Set shlibpath_overrides_runpath for the Hurd.
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [gnu]
<shlibpath_overrides_runpath>: Set to no.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-04-10 10:17:21 +02:00
Justin Lecher
1b76054f47 Don't filter OPENMP flags (-openmp & -fopenmp) from linker lines.
If -fopenmp if passed to gcc during linking, it will take care to add all
necessary libs to link correctly for openmp support. Currently libtool filters
those flags, similar as it was the case with the threading flags. This change
handles the situation for the openmp support similar as before the thread
support was fixed.

http://lists.gnu.org/archive/html/bug-libtool/2010-12/msg00009.html
http://lists.gnu.org/archive/html/bug-libtool/2011-03/msg00014.html

* libltdl/config/ltmain.m4sh (func_mode_link): Treat OpenMP
flags like pthreads flags.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-22 07:47:10 +01:00
Ralf Wildenhues
39f84c6eba libtoolize: detect -I<dir> (without space) in ACLOCAL_AMFLAGS.
* libtoolize.m4sh (func_scan_files): Also accept -I<dir>
(without intervening space) in ACLOCAL_AMFLAGS.
* THANKS: Update.
Report from Jan Engelhardt.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-03-14 07:33:00 +01:00
Peter O'Gorman
6a6de36e4c On Mac OS X try .dylib as well as .so with lt_dlopenext
* libltdl/m4/ltdl.m4: Define extra extension if module extension
differs from shared lib extension.
* libltdl/ltdl.c: Use it.
* tests/darwin.at: Test it.
* NEWS: Announce it.
Reported by Hans Aberg, Michael Ellis, and others.
2011-03-05 10:14:19 -06:00
Peter O'Gorman
c44468e0ec Install ltmain.sh without execute bit set.
* Makefile.am: change install rule for ltmain.sh
Reported by Křištof Želechovski.
2011-02-14 10:34:58 -06:00
Ralf Wildenhues
d6f69ef647 docs: fix copyright years in PDF version of the manual.
* doc/libtool.texi: Fix copyright years.
2011-02-07 07:40:17 +01:00
Ralf Wildenhues
86562ff735 fix typo in ChangeLog 2011-02-01 07:48:39 +01:00
Rainer Orth
9196966580 Fix LD setting for 64-bit Solaris 2/x86.
* libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK) [*-*-solaris*):
Determine GNU ld options for 64-bit Solaris 2/x86.  Detect gld
2.21 _sol2 emulations.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-02-01 07:39:26 +01:00
Peter O'Gorman
286e87b103 Don't loop through wrapper script arguments unnecessarily.
* libltdl/m4/ltmain.m4sh: Check that argv contains " --lt-"
before looping to remove wrapper script targetted arguments.
Performance regression reported by Dan McGee.
2011-01-27 17:13:10 -06:00
Gerald Pfeifer
e94c6d6e03 Remove support for FreeBSD 1.x.
* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS)
(_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which
soon would incorrectly match FreeBSD 10.0.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-01-20 19:36:29 +01:00
Peter O'Gorman
a85c4f5e40 Don't let verbose linker messages influence test results.
* libltdl/m4/libtool.m4 (_LT_REQUIRED_DARWIN_CHECKS): Ignore
stderr during tests for -flag unless it contains "flag".
* tests/darwin.at: Add test.
Reported by Jeremy Huddleston and also by David Fang.
2011-01-19 12:53:32 -06:00
John David Anglin
9167aecabd Fix relink mode to use absolute path if hardcode_minus_L.
* libltdl/config/ltmain.m4sh (func_mode_link): Use absolute path
when hardcoding with -L.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-01-09 19:57:30 +01:00
Ralf Wildenhues
a55208d56b Fix $wl setting for Solaris Studio 12.2 f90 on GNU/Linux.
* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux]
<lt_prog_compiler_wl>: Set to '-Qoption ld ' if we
detect Sun Fortran version 8.4 or newer.
Report by Terry Dontje.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-01-09 17:55:45 +01:00
Peter Rosin
ce87974b8e Convert file name to toolchain format when blessing archives.
* libltdl/config/ltmain.m4sh (func_mode_install): When executing
old_postinstall_cmds and old_archive_cmds, convert $oldlib to a
format appropriate for the tool and provide that in $tool_oldlib.
Also use $tool_oldlib when stripping old libraries.
* libltdl/m4/libtool.m4 (_LT_CMD_OLD_ARCHIVE): Use $tool_oldlib
as argument to $RANLIB.
* THANKS: Update.
Report by Dan McMahill.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
2011-01-07 11:49:10 +01:00
Ralf Wildenhues
5f3ce62d72 Bump copyright years.
* ChangeLog.2010: New, rotated from ...
* ChangeLog: ... here.
* Makefile.am (EXTRA_DIST): Add ChangeLog.2010.
* NEWS, libltdl/config/ltmain.m4sh: Bump copyright years.
* libltdl/m4/libtool.m4 (_LT_COPYING, LT_OUTPUT): Likewise.
* libtoolize.m4sh: Likewise.
* doc/libtool.texi: Likewise.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2011-01-02 06:00:41 +01:00
Ian Lance Taylor
b78075b8ae Add Go support.
* libltdl/m4/libtool.m4 (LT_LANG): Add Go.
(AC_PROG_GO): Provide.
(_LT_SYS_HIDDEN_LIBDEPS): Add Go case.
(_LT_LANG_GO_CONFIG): Define.
(LT_PROG_GO): Define.
(AC_PROG_GO): Define if not defined.
* libltdl/config/ltmain.m4sh: Match *.go.
* doc/libtool.texi (LT_INIT): Mention Go.
(Tags): Mention Go.
* configure.ac: Enable Go.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-12-20 08:05:09 +01:00
Brice De Bruyne
7aabd35c4c Also turn off -fuse-linker-plugin for postdep_objects computation.
* libltdl/m4/libtool.m4 (_LT_SYS_HIDDEN_LIBDEPS): Add
-fno-use-linker-plugin to temporary compile flags if necessary,
to fix C++ postdep_objects setting with -flto
-fuse-linker-plugin.
* NEWS, THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-12-20 08:04:57 +01:00
KO Myung-Hun
e80566abb3 Set command line length limit for OS/2.
* libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN) [os2]
<lt_cv_sys_max_cmd_len>: Set to 8192 to avoid long test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-12-20 04:13:48 +01:00
Ralf Wildenhues
39ba8c55de Fix PIC flags with mpif77 using ifort on GNU/Linux.
* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux]:
Match Intel compiler also using $CC -V output, to avoid false
negatives with compiler drivers like mpif77.
Report by Christian Rössel.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-12-20 04:05:59 +01:00
Ralf Wildenhues
92eb89aace Fix PIC flags with MPI wrappers using Portland on GNU/Linux.
* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux]:
Match Portland compilers also using $CC -V output, to avoid
false negatives with MPI compiler drivers.
Report by Christian Rössel.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-12-16 21:42:02 +01:00
Ralf Wildenhues
738f282ab1 * libltdl/m4/libtool.m4 (_LT_SETUP): Fix quoting for PATH_SEPARATOR. 2010-12-16 07:58:57 +01:00
KO Myung-Hun
8c00e12df8 Fix PATH_SEPARATOR handling for OS/2.
* Makefile.am (update_mans): Quote $(PATH_SEPARATOR).
* libltdl/m4/libtool.m4 (_LT_SETUP): Add _LT_DECL for
PATH_SEPARATOR.
* libltdl/config/general.m4sh: Use PATH_SEPARATOR when computing
$progpath.
* THANKS: Update.
2010-12-15 22:31:32 +01:00
Ralf Wildenhues
82beb2a169 Fix nvcc PIC setting on darwin.
* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC)
<lt_prog_compiler_pic>: Prepend -Xcompiler to nonempty variable
setting rather than hard-coding -Xcompiler -fPIC, for darwin.
* NEWS, THANKS: Update.
Report by Paweł Daniluk.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-12-10 07:34:54 +01:00
Ralf Wildenhues
1c9aa6dac5 Honor $AUTOCONF, $AUTOMAKE in --help output.
* libltdl/config/getopt.m4sh (func_help): Use $AUTOCONF and
$AUTOMAKE if set, for --version outout.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-12-10 07:33:59 +01:00
Ralf Wildenhues
cc027148f2 docs: Libtool configuration diagram.
* doc/libtool.texi (Integrating libtool): Add diagrams
explaining the dependencies between Libtool files.
Suggestion by Ethan Mallove.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-12-10 07:33:33 +01:00
Ralf Wildenhues
4fee8796c9 Eliminate hardcode_libdir_flag_spec_ld tag variable.
* libltdl/config/ltmain.m4sh (func_mode_link): Set $wl to empty
if $LD is used for creating shared libraries.  Do not use
hardcode_libdir_flag_spec_ld any more.
* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
(_LT_LANG_F77_CONFIG, _LT_LANG_FC_CONFIG, _LT_SYS_DYNAMIC_LINKER)
<hardcode_libdir_flag_spec_ld>: Remove all instances of the tag
variable.
(_LT_LINKER_SHLIBS) [linux, xlf] <hardcode_libdir_flag_spec>:
Set variable, including ${wl}.  Fixes hardcoding in programs
created by XL Fortran on GNU/Linux.
* NEWS, THANKS: Update.
Report by Paul H. Hargrove.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-11-15 23:13:33 +01:00
Ralf Wildenhues
8eb036bb12 Rebuild menus in the manual.
* doc/automake.texi: Rebuild menus (using ^C ^U ^A in emacs).
Thanks to Ian Lance Taylor for the suggestion.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-11-15 22:49:08 +01:00
Ollie Wild
2a736edf3e Modify --with-pic to support per-package configurations.
* libltdl/m4/libtool.m4:  Modify --with-pic to accept a list of
package names.  Modelled off --enable-shared.
* tests/with-pic.at: New test.
* Makefile.am (TESTSUITE_AT): Add tests/with-pic.at.
* doc/libtool.texi (LT_INIT): Enhance documentation of
--with-pic configure flag.
* NEWS (New features): Mention that --with-pic now accepts a
comma-separated list of package names.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-11-10 22:40:11 +01:00
Ralf Wildenhues
5ca9b3ec6b Fix cwrapper test failure with --disable-static.
* tests/cwrapper.at (cwrapper and installed shared libraries):
Compile program source without libtool, so we can be sure a
non-PIC object will be created.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-11-10 19:28:11 +01:00
Peter Rosin
7a6ca6e694 docs: Windows DLLs and headers.
* doc/libtool.texi (Platform quirks): Add new subsection
'Windows DLLs'.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
2010-11-01 10:10:36 +01:00
Peter Rosin
a1f6254415 * doc/libtool.texi (Platform quirks): Fix typo. 2010-11-01 08:15:16 +01:00
Ralf Wildenhues
e5b1c89cbe docs: mention shell requirement for libtool script.
* doc/libtool.texi (Invoking libtool): Document that the shell
used to invoke libtool needs to be the same used to configure
it.
* THANKS: Update.
Report by Markus Duft.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-10-30 09:27:44 +02:00
Ralf Wildenhues
2f907f634e Merge branch 'libtool-next' (early part)
* 'libtool-next' (early part):
  libtool: remove redundant unsubstituted shell var defaults.
  maint: don't leak developer GREP, SED etc into distribution file.
  maint: rearrange Makefile.am in preparation for a follow-up patch.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-10-15 05:56:26 +02:00
Ralf Wildenhues
3b0fd490f3 Fix linking from only convenience archives with gfortran on Darwin.
* libltdl/m4/libtool.m4 (_LT_DARWIN_LINKER_FEATURES): Update
macro comment header.
[darwin, F77, FC] <compiler_needs_object>: Set to yes if
whole_archive_flag_spec is nonempty.  Fixes convenience.at test
suite failures with gfortran 4.2 on Darwin.
* THANKS: Update.
Report by Paul Laight.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-10-15 05:41:45 +02:00
Ralf Wildenhues
5bc5f69ec6 Fix bindir check logic, and relax non-bindir case for AIX.
* tests/bindir.at (bindir install tests): Rewrite checks for
place of the installed shared library in two separate tests,
depending on whether -bindir is supposed to have an effect or
not.  In the positive case, make the test stricter so that we
reject libraries in $libdir.  In the negative case, do not
require a major version number in the $libdir file name, for AIX
without runtimelinking.  If tmpdir creation fails, skip the
test.  Use fewer bindir directory names for testing, to speed
up the test.  Also mention MSVC style DLL name in comment.
Report by Peter Rosin.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-10-15 05:38:35 +02:00
Ralf Wildenhues
5798227360 tests: remove unneeded 'bindir compile check' test.
* tests/bindir.at (bindir compile check): Remove.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-10-15 05:38:19 +02:00
Peter Rosin
583cf62861 tests: fix $EXEEXT typo.
* tests/depdemo-relink.test (func_restore_files): Use $EXEEXT
instead of $EXEXT.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
2010-10-14 14:22:53 +02:00
Simon Josefsson
72266fced9 docs: improve description of -no-undefined.
* doc/libtool.texi (Link mode): Fix -no-undefined description.
(Inter-library dependencies): Use Windows not AIX as example
system.  Clarify need for symbol resolution at library creation
time.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-10-12 07:36:46 +02:00
Paolo Bonzini
2ed5700993 Add missing sysroot resolution.
* libltdl/config/ltmain.m4sh (func_mode_link): Resolve sysroot
when fetching the install directory of dependent libraries.
Reported by Lionel Landwerlin <llandwerlin@gmail.com>,
patch by Khem Raj <raj.khem@gmail.com>.
* THANKS: Reorder entries, add Khem and Lionel.
2010-10-09 10:41:56 +02:00
Roumen Petrov
b76bfa87f5 Add test case for 69e77671 (cwrapper PATH manipulation order)
* tests/cwrapper.at: Add new test 'cwrapper and installed shared
libraries.'

Signed-off-by: Charles Wilson <libtool@cwilson.fastmail.fm>
2010-10-07 22:48:47 -04:00
Peter Rosin
c161010e9d cwrapper: split long lines when dumping the wrapper script.
* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src): If
the wrapper script contains long lines, split them for
readability and to conform with C standards.
* tests/cwrapper.at (cwrapper string length): New test, making
sure we don't regress.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
2010-10-04 21:16:26 +02:00
Peter Rosin
79bca27c51 msvc: handle symbols from different files independently.
* libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS)
<dumpbin, lt_cv_sys_global_symbol_pipe>: Make all sections
viable for symbol extraction again when the symbols from a new
file starts.  Fixes tests/tagdemo-make.test for MSVC 10.
* tests/dumpbin-symbols.at: New test, making sure we don't
regress.
* Makefile.am (TESTSUITE_AT): Update.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
2010-10-04 16:02:39 +02:00
Peter Rosin
c5bce82581 tests: check if sys_lib_search_path_spec works on MSVC.
* tests/sys-lib.at: New test, making sure v2.2.10-207-g09142ea
doesn't regress.
* Makefile.am (TESTSUITE_AT): Update.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
2010-09-27 20:09:53 +02:00
Peter Rosin
3a9fabb61d Skip need_lib_prefix.at on systems without lib prefix on libraries.
* tests/need_lib_prefix.at [MSVC, OS/2]: Skip this test on
systems that do not have libraries prefixed with lib.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
2010-09-27 13:44:48 +02:00
Peter Rosin
13608ea10f tests: clean up importing and exporting on w32.
Makes the touched tests pass for MSVC when DLLs are built.

* tests/demo/Makefile.am, tests/pdemo/Makefile.am: Define
BUILDING_LIBHELLO when building libhello.la.
* tests/demo/foo.h, tests/pdemo/foo.h (nothing) <MSVC>: Export
variable when building the libhello dll and import when using
libhello.  For GCC and non-w32, and when building a static
libhello, leave as an ordinary extern.
* tests/pdemo/foo.h [Cygwin]: Remove unneeded and "dead" export
and import logic (LIBFOO_DLL is always undefined).
* tests/pdemo/longer_file_name_foo.c,
tests/pdemo/longer_file_name_foo2.c (_LIBFOO_COMPILATION_): Not
useful before, even less so now.  Removed.
* tests/depdemo/l1/Makefile.am: Define BUILDING_LIBL1 when
building libl1.la.
* tests/depdemo/l2/Makefile.am: Define BUILDING_LIBL2 when
building libl2.la.
* tests/depdemo/l3/Makefile.am: Define BUILDING_LIBL3 when
building libl3.la.
* tests/depdemo/l4/Makefile.am: Define BUILDING_LIBL4 when
building libl4.la.
* tests/depdemo/l1/l1.h, tests/depdemo/l2/l2.h,
tests/depdemo/l3/l3.h, tests/depdemo/l4/l4.h <MSVC>: Export
variables when building the associated library dll and import
when using the library.  For GCC and non-w32, and when building
static libraries, leave as an ordinary extern.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
2010-09-27 10:08:05 +02:00
Ralf Wildenhues
92651fdcb8 docs: do not refer to Libtool version with dlopen functionality.
* doc/libtool.texi (Dlopened modules): Remove broken reference
to what should have been Libtool 0.9g.
Report by Roumen Petrov.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2010-09-26 21:37:58 +02:00