Commit Graph

240 Commits

Author SHA1 Message Date
Alexandre Oliva
458a451208 * ltconfig.in (need_lib_prefix, need_version,
deplibs_check_method): default to unknown, so that we're
 	remembered that this needs porting; unknown is interpreted as yes,
 	yes and none, respectively
	(freebsd2*, freebsd3*, sunos4*, need_version): set to yes
	(freebsd2*, freebsd3*, library_names_spec): libraries without a
	version number are not used by `ld'; add $versuffix;
	Reported by Ben Jackson <ben@ben.com>
	* ltmain.in (deplibs_check_method): alias unknown to none
	(need_version): if vinfo was not provided and release info was,
	zero out versuffix only if we don't need_version.
	* doc/libtool.texi: document what `unknown' means
1999-01-17 04:21:52 +00:00
Thomas Tanner
94cfa949e2 *** empty log message *** 1999-01-13 21:39:14 +00:00
Alexandre Oliva
d9bc7946f9 * ltconfig.in (solaris): define `need_version' to no
1999-01-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* ltconfig.in (solaris): Define `deplibs_check_method',
	`file_magic_command', `need_lib_prefix' and `sys_lib_search_path'
	* ltmain.in (file_magic_regex): Add space before matching pattern,
	such that it works on solaris (solaris has a tab between the
	library name (including the colon) and the `ELF' and such the
	`ELF' will never be matched).
1999-01-13 20:48:54 +00:00
Edouard G. Parmelan
2e68bf5aec * ltconfig.in (NM): PATH search was not updated like in
libtool.m4, in last Alexandre Oliva's change to it
	(sysv4*, ncr): pass all library dependencies
	* ltmain.in (dependency_libs, -R): use `dep' instead of `arg' to
 	iterate, otherwise we'd overwrite `arg'
	(convenience, old_libs): if --disable-shared, convenience
	libraries are just old archives, as .lo's are of no use
	* tests/cdemo-static.test: print --disable-shared here
1999-01-13 20:27:17 +00:00
Edouard G. Parmelan
0862357f6d * ltmain.in (dependency_libs, -R): use dep' instead of arg' to
iterate, otherwise we'd overwrite `arg'
1999-01-13 20:09:43 +00:00
Alexandre Oliva
8c49ba24a3 * ltmain.in (old_archives, oldobjs): use find to SYMDEF here too 1999-01-13 18:27:43 +00:00
Alexandre Oliva
f956b65fc4 * configure.in (AC_CONFIG_SUBDIRS): added cdemo
* Makefile.am (DIST_SUBDIRS): ditto
	(ACINCLUDE_M4_LIST): ditto
	* tests/Makefile.am (TESTS): added cdemo-shared.test
	* tests/cdemo-static.test: disable shared libraries here
	* tests/cdemo-shared.test: disable static libraries here
	* doc/libtool.texi (Test descriptions): added cdemo tests
	* THANKS: added Edouard G. Parmelan

1999-01-13  Edouard G. Parmelan  <Edouard.Parmelan@France.NCR.COM>

	* ltmain.in: fix convenience libraries when static libraries
	are disables.
	* cdemo/README, cdemo/Makefile.am, cdemo/configure.in, cdemo/foo.h,
	cdemo/foo1.c, cdemo/main.c, cdemo/.cvsignore, test/cdemo-conf.test,
	test/cdemo-make.test, test/cdemo-exec.test, test/cdemo-static.test:
	new tests for convenience libraries.
	* autogen, Makefile.am, test/Makefile.am: ditto.

	* ltconfig.in, doc/PLATFORMS: Added support for NCR MP-RAS
	(i586-ncr-sysv4.3*) with native compiler.
	* README, doc/libtool.texi: Added note for NCR MP-RAS compiler.
1999-01-13 08:28:35 +00:00
Thomas Tanner
89aa144652 *** empty log message *** 1999-01-12 20:42:47 +00:00
Alexandre Oliva
b77241c5b8 * ltmain.in, NEWS, doc/libtool.texi: Added support for -R flag
* ltmain.in, doc/libtool.texi: documented that -rpath is the same
	as -R for programs
	* ltmain.in: softened the instructions for linking with installed
	libraries, and noted that libtool can be used to link with them;
	documented that -rpath is not required for convenience libraries
1999-01-11 22:31:00 +00:00
Alexandre Oliva
40ef9f4a1f * ltmain.in (convenience, libobjs): get only .o and .lo files from
the files extract from the convenience library.  Some systems,
	such as FreeBSD2, will add a SYMDEF file, that is not an object
	file, and therefore should not be fed to the linker
1999-01-11 06:27:08 +00:00
Thomas Tanner
662305576a *** empty log message *** 1999-01-10 14:44:06 +00:00
Gary V. Vaughan
40802126fd default is to allow undefined symbols in libraries 1999-01-07 16:13:02 +00:00
Gary V. Vaughan
995b5afa7b use absolute directory paths in dllsearchpath 1999-01-06 17:51:59 +00:00
Alexandre Oliva
e1d24d3b02 * ltmain.in (libobjs_save, oldobjs): when building an
old-fashioned archive, use a copy of libobjs saved before
 	convenience libraries are appended

	* libltdl/ltdl.h (_LTDLL_EXPORT, _LTDLL_IMPORT): use cygwin or
	unix library import/export primitives; this may be convenient for
	people willing to create DLLs
	(_LTDLL_EXTERN): select _LTDLL_EXPORT or _LTDLL_IMPORT depending
	on _LTDL_COMPILE_
	* libltdl/ltdl.h, libltdl/ltdl.c (lt_dlpreopen): new function,
 	that replaces the current preloaded_symbols list with its
 	argument, and returns the old value, initially NULL
	(dldpre_init): don't refer to dld_preloaded_symbols any more
	(dldpre_open, dldpre_sym): search preloaded_symbols
	(lt_dlpreopen_default): call lt_dlpreopen with
	dld_preloaded_symbols, that is declared as extern; it should be
	called from the main program or from some static library without
	-no-undefined
	(lt_dlerror): new function, that returns the error message for the
	last error occurred; the error message is kept in the static
	variable last_error
	* libltdl/configure.in (enable-ltdl-install): moved back from
	enable-install; other packages might use enable-install already,
	better have fine grained control over this.
	* libltdl/Makefile.am (libltdls.la): discarded
1999-01-05 23:13:44 +00:00
Thomas Tanner
bd9c24ae34 *** empty log message *** 1999-01-05 18:15:22 +00:00
Alexandre Oliva
43769b5711 * ltmain.in (SP2NL, NL2SP): Don't delete empty lines, as this
would lose for files with embedded blanks.
1999-01-05 15:10:33 +00:00
Alexandre Oliva
9a1c15d7cf * ltconfig.in (cygwin, archive_cmds, archive_sym_cmds): Moved
ltdll.c into ltmain.in, to avoid its duplication, and added a sed
 	script to extract it.  Also, create def and base files in $objdir,
 	and don't remove them after the compilation.
	(cygwin, library_names_spec): Create static part of the dll with
 	suffix -dll.a, to avoid conflicts with actual static libraries.
	* ltmain.in: Added ltdll.c, as commented out text
1999-01-05 08:51:02 +00:00
Thomas Tanner
ec45a29680 *** empty log message *** 1999-01-01 20:01:09 +00:00
Thomas Tanner
48218d83e7 *** empty log message *** 1998-12-31 11:25:57 +00:00
Thomas Tanner
34e91b88c1 *** empty log message *** 1998-12-29 14:40:13 +00:00
Thomas Tanner
f55fd32f91 *** empty log message *** 1998-12-27 20:04:12 +00:00
Gary V. Vaughan
7791b0d40b fix deplibs for non ltlibs on win32 1998-12-24 16:02:41 +00:00
Gary V. Vaughan
fa787ea3d3 make wrapper scripts work on win32 1998-12-24 13:40:47 +00:00
Alexandre Oliva
e3be7dc0e1 * ltmain.in (SP2NL, NL2SP): use `tr' magic to avoid passing very
long lines to sed
	* doc/libtool.texi (sed): very long lines are no longer a problem
1998-12-23 19:40:56 +00:00
Gary V. Vaughan
aa4ae3b112 more improvements for the win32 port 1998-12-23 17:30:12 +00:00
Thomas Tanner
f772ee7a8e *** empty log message *** 1998-12-23 13:28:28 +00:00
Thomas Tanner
1d6e1de8a8 *** empty log message *** 1998-12-21 17:30:48 +00:00
Gary V. Vaughan
7fe8f5c785 misc win32 cleanups 1998-12-21 13:04:14 +00:00
Thomas Tanner
bd8bb66bb7 *** empty log message *** 1998-12-19 19:30:30 +00:00
Thomas Tanner
23d413543d *** empty log message *** 1998-12-18 22:23:51 +00:00
Stephan Kulow
779c2f4108 * ltmain.in (freebsd-aout, freebsd-elf): added missing dot to
versuffix
1998-12-16 03:56:49 +00:00
Alexandre Oliva
64b3cf7ae9 * ltmain.in (-DSTATIC): changed to -DLIBTOOL_STATIC, and defined
only for -force-static; it should be removed soon, before people
	start to use it
1998-12-16 02:28:53 +00:00
Thomas Tanner
1c3b55c703 *** empty log message *** 1998-12-11 23:21:03 +00:00
Alexandre Oliva
e8e76d36b5 * ltmain.in (convenience, deplibs): propagate dependencies
* libltdl/Makefile.am (noinst_HEADERS): don't install ltdl.h yet
	(noinst_LTLIBRARIES): ditto for libltdl.la
1998-12-09 07:51:54 +00:00
Thomas Tanner
f906af718a *** empty log message *** 1998-12-08 13:12:10 +00:00
Thomas Tanner
c23e0a74db *** empty log message *** 1998-12-03 20:49:31 +00:00
Thomas Tanner
3ce33a45f6 *** empty log message *** 1998-12-01 22:35:00 +00:00
David Heine
2a0eaa6262 * ltmain.in (pass_all): actively pass the flags 1998-11-25 01:00:15 +00:00
Thomas Tanner
a4f2b1f846 *** empty log message *** 1998-11-23 21:26:38 +00:00
Alexandre Oliva
39eaa038a1 * ltmain.in: missing test' between &&' and `"$module"' 1998-11-19 20:31:26 +00:00
Alexandre Oliva
cc297c844f * ltmain.in (installed): new variable defined within a .la file,
so that libtool can now link already-installed libraries into a
	program.
	* NEWS: ditto
	* doc/libtool.texi (Linking executables): document it
1998-11-19 18:01:07 +00:00
Alexandre Oliva
1d3fb4e061 * ltmain.in (output_objdir): compute it from $output, not $arg 1998-11-19 13:54:59 +00:00
Alexandre Oliva
e76ee47bce * NEWS: -module and libtldl
* mdemo/Makefile.am: ../libltdl is within $(srcdir)

	* libltdl, Makefile.am: added libltdl (a system independent
	dlopen wrapper library extracted from mdemo)
	* ltmain.in: added -module flag for compiling and linking of
	modules. If enabled it compiles always both .o (with -DLT_RENAME)
	and .lo files
	* mdemo: modified mdemo to work with libltdl
	* tests/ltdl*: added tests for libltdl
1998-11-18 07:29:36 +00:00
Steve Price
f862078a89 * ltconfig.in: when $host_os is freebsd[23]* determine whether
the current linker format is a.out or ELF
	* ltmain.in: add two new $version_type's, freebsd-aout and
	freebsd-elf, to support above change
1998-11-16 19:39:25 +00:00
Alexandre Oliva
76d675ff0f * ltmain.in (C_compiler): copy $CC before it is overwritten with
command-line compiler, so that we can use it to compile C sources
 	generated during the build.  This fixes the problem that showed up
	with -export-dynamic of C++ programs in egcs 1.1.
	* NEWS: ditto
1998-11-16 08:10:45 +00:00
Alexandre Oliva
b0555f70c8 * ltmain.in (IFS): revert Gary's patch when parsing version
information; we still use `:' here :-)
1998-11-11 22:21:35 +00:00
Alexandre Oliva
2d37f44824 * ltconfig.in: make use of '~' field separator in reload_cmds,
old_archive_from_new_cmds, old_archive_cmds, archive_cmds,
 	old_postinstall_cmds, postinstall_cmds, old_postuninstall_cmds,
 	postuninstall_cmds and finish_cmds, so that the semi-colons inside
 	if/then/else/fi and for/do/done etc. do not break the eval loop in
 	ltmain.in (below).
        * ltmain.in: changed all of the eval loops to use an IFS of `~',
 	to allow differentiation between the end-of-statement-;
	(now `~' is used) and end-of-substatement-; (still `;').  This
 	fixes AIX and win32 at least.
1998-11-11 21:12:30 +00:00
Toshio Kuratomi
cfae038fa3 * ltconfig.in: re-enable deplibs
* ltmain.in: support deplibs, at least for GNU/Linux/x86
1998-11-11 01:47:02 +00:00
Gordon Matzigkeit
3c8bd8bf24 Second try at relink warning message.
CVS:
CVS:
1998-11-10 22:11:09 +00:00
Gordon Matzigkeit
516e84bd94 Soften the relink warning.
CVS:
CVS:
1998-11-10 22:04:14 +00:00
Alexandre Oliva
69ef5488f6 * ltconfig.in: add --falback-echo, to be used if everything else
fails.  The tests now check the behavior of $echo for very large
 	strings, because some echo commands would just core dump (e.g.,
 	Solaris' printf).  If too large strings fail, smaller ones are
 	tested.
	(ltecho): arrange that, if the --fallback-echo method is selected,
	echo will be defined in the libtool script so as to re-run itself,
	not ltconfig
	* ltmain.in: add --fallback-echo
	(qecho) ensure that, if --falback-echo is being used, qecho is
	defined with the full pathname of the libtool script
1998-11-07 07:04:04 +00:00
Alexandre Oliva
8c1f97e1be 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltconfig.in, ltmain.in: updated and fixed the patches below

1998-11-04  Thomas Tanner  <tanner@gmx.de>

	* mdemo/*: added new demo to demonstrate building of dlopenend
	modules
	* tests/Makefile.am, tests/mdemo*: added some tests for mdemo

1998-11-04  Gary V. Vaughan  <gvaughan@oranda.demon.co.uk>

	* demo/configure.in: added AC_EXEEXT macro so that the tests can
 	work on cywin32/mingw32 hosts.  This requires the current CVS
 	autoconf

1998-11-04  Thomas Tanner  <tanner@gmx.de>

	* ltmain.in: New flag -export-symbols; new dlpreopen system
	* demo/dlmain.c: removed dld_preloaded_symbol_count

1998-11-04  Ian Lance Taylor  <ian@cygnus.com>

	* ltmain.in: On installation, don't get confused if the same name
	appears more than once in the list of library names.

1998-11-04  Ian Lance Taylor  <ian@cygnus.com>

	* ltconfig.in: Add objext and libext variables.  Check for object
	suffix.  Check for mingw32* as well as cygwin32*.  Use objext when
	testing compiler.  Add support for Visual C++ on cygwin32 when not
	using gcc.  Add objext, libext, and fix_srcfile_path to generated
	libtool script.
	* ltmain.in: Use .${objext} rather than .o.  Use fix_srcfile_path
	if it is set.  Check for .obj as well as for .o, and for .lib as
	well as for .a.  Use .${libext} rather than .a when creating old
	libraries.
	* libtoolize.in: Change initial /bin/sh to @SHELL@.
	* libtool.m4 (AM_PROG_LIBTOOL): Add AC_REQUIRE for
	AC_CANONICAL_BUILD, so that autoconf doesn't get mixed up by the
	AC_REQUIRE in AC_CHECK_TOOL.

1998-11-04  Ian Lance Taylor  <ian@cygnus.com>

	* ltconfig.in: Look in the right directory for libtool.c in
	archive_cmds for cygwin32.

1998-11-04  Ian Lance Taylor  <ian@cygnus.com>

	* ltconfig.in: Fix cygwin32 support to avoid using a double
	extension, to delete the def file, to set version_type to windows,
	and to include versuffix in the DLL name.
	* ltmain.in: Add support for a version_type of windows.

1998-11-04  Ian Lance Taylor  <ian@cygnus.com>

	* ltconfig.in: Add cygwin32 support.
	* libtool.m4 (AM_PROG_LIBTOOL): Call AM_SYS_LIBTOOL_CYGWIN32 on a
	cygwin32 host.  Pass DLLTOOL and AS to ltconfig.
	(AM_SYS_LIBTOOL_CYGWIN32): New macro.
1998-11-04 09:43:29 +00:00
Alexandre Oliva
1168e3b550 * ltconfig.in (compiler_o_lo): check whether we can write directly
to a .lo
	* ltmain.in (compiler_o_lo): if not, write to .o and rename it
1998-11-04 07:10:43 +00:00
Ian Lance Taylor
c6c2f3ad4a * ltconfig.in: For sunos4 using GNU ld, set hardcode_minus_L to
no.
	* ltmain.in: Add some hacks to make SunOS --enable-shared work
	when using GNU ld.
1998-11-04 06:17:44 +00:00
Alexandre Oliva
09a44649a3 * ltconfig.in (need_locks): if neither `-c -o' nor hard links are
available, fallback to not so safe mechanism, by setting
	need_locks to warn
	* ltmain.in (need_locks): when need_locks is set to warn, use the
	lockfile to try to fail in case of incorrect concurrent builds
1998-11-04 05:50:33 +00:00
Eric Estievenart
8747a04ff9 * doc/libtool.texi (Compile mode): Document that -o is fully
supported.

	* libtool.m4 (libtool-lock): new ARG_ENABLE; sets (need_locks)
	* ltconfig.in (disable-lock): control need_locks
	(hard_links): check whether hard-links can be used for locking
	* ltmain.in (need_locks): use $output_obj.lock for locking
1998-11-04 04:13:03 +00:00
Alexandre Oliva
9175e38188 thou shalt not commit before make check :-) 1998-11-04 03:20:34 +00:00
Alexandre Oliva
d630d91159 * ltmain.in: correctly create libraries and programs with
directory components in their names
1998-11-04 02:09:16 +00:00
Eric Estievenart
b13aa06d7d * ltmain.in (output_obj): typo 1998-11-03 22:04:13 +00:00
Ian Lance Taylor
2b891d56f4 * ltconfig.in: For sunos4, add ${libname}.so$versuffix to
library_names_spec.
	* ltmain.in: For version_type of sunos, set versuffix even if
	-version-info was not used.
1998-11-02 23:05:42 +00:00
Alexandre Oliva
00342f45b1 * ltmain.in (libobj): default value must not contain directory
components

	* ltconfig.in (compiler): detect if the compiler supports
	-c and -o flags, create a variable compiler_c_o. Also issue
	a big warning if it is not supported

	* ltmain.in (compile): enable the -o option as input for libtool.
	The objects are not moved if the compiler supports -o with -c.
	Sources and objects can contain relative directories.
	(link): enable the linking of executables into relative directories
1998-11-02 17:21:52 +00:00
Gordon Matzigkeit
3474787b39 *** empty log message *** 1998-10-14 22:40:18 +00:00
Gordon Matzigkeit
c6d1fb8b49 *** empty log message *** 1998-08-20 15:48:13 +00:00
Gordon Matzigkeit
80ab78bf41 *** empty log message *** 1998-07-01 08:12:49 +00:00
Gordon Matzigkeit
ed1bcd818a *** empty log message *** 1998-05-30 19:18:08 +00:00
Gordon Matzigkeit
e6f7cc5c13 *** empty log message *** 1998-05-18 11:03:32 +00:00
Gordon Matzigkeit
c71779678a *** empty log message *** 1998-04-27 15:10:35 +00:00
Gordon Matzigkeit
59abbf0c10 *** empty log message *** 1998-04-19 19:29:28 +00:00
Gordon Matzigkeit
b0f0d520a8 *** empty log message *** 1998-04-14 16:29:20 +00:00
Gordon Matzigkeit
91706dabe2 *** empty log message *** 1998-03-20 07:58:42 +00:00
Gordon Matzigkeit
45177bb117 *** empty log message *** 1998-03-09 05:34:02 +00:00
Gordon Matzigkeit
0f57773de1 *** empty log message *** 1998-03-05 16:23:43 +00:00
Gordon Matzigkeit
54c920be96 *** empty log message *** 1998-02-16 20:13:54 +00:00
Gordon Matzigkeit
831a978fa1 *** empty log message *** 1998-02-12 05:45:15 +00:00
Gordon Matzigkeit
af5498d64d *** empty log message *** 1998-02-06 08:38:29 +00:00
Gordon Matzigkeit
73d4ab260a *** empty log message *** 1998-02-06 07:36:38 +00:00
Gordon Matzigkeit
3c533f8fe9 *** empty log message *** 1998-01-25 19:35:11 +00:00
Gordon Matzigkeit
bb6f3c7353 *** empty log message *** 1997-11-29 21:03:42 +00:00
Gordon Matzigkeit
d55ff88a4f *** empty log message *** 1997-11-29 20:50:36 +00:00
Gordon Matzigkeit
41ced21498 *** empty log message *** 1997-11-28 17:23:28 +00:00
Gordon Matzigkeit
5368cd4ce3 *** empty log message *** 1997-11-27 16:57:00 +00:00
Gordon Matzigkeit
0248cf1ca6 *** empty log message *** 1997-11-14 18:04:44 +00:00
Gordon Matzigkeit
ff915e483e *** empty log message *** 1997-11-08 06:25:09 +00:00
Gordon Matzigkeit
44664c0734 *** empty log message *** 1997-11-06 16:59:31 +00:00
Gordon Matzigkeit
8c548bdd7f *** empty log message *** 1997-10-22 05:00:03 +00:00
Gordon Matzigkeit
7c5fe1050f *** empty log message *** 1997-10-20 01:24:09 +00:00
Gordon Matzigkeit
976a17a76d *** empty log message *** 1997-10-19 18:53:23 +00:00
Gordon Matzigkeit
8264f115e6 *** empty log message *** 1997-10-14 18:33:24 +00:00
Gordon Matzigkeit
43de71de11 *** empty log message *** 1997-09-15 14:12:49 +00:00
Gordon Matzigkeit
7ed1d38ae8 Initial revision 1997-09-15 12:31:09 +00:00