Commit Graph

502 Commits

Author SHA1 Message Date
Thomas Tanner
05ba011011 * doc/libtool.texi (libltdl): list supported dlopen mechanisms,
added function lt_dlopenext(), removed reference to
  LTDL_PRELOADED_SYMBOLS in LTDL_SET_PRELOADED_SYMBOLS
* libltdl/ltdl.c: partially reverted Alexandre's dynamic string
  allocation change (it was not necessary and the code was unreadable),
  cleanups, removed usr_search_path_size, renamed usr_search_path
  to user_search_path, in find_module() also check for moved
  modules, merged find_file() and find_library(),
  added lt_dlopenext(), in lt_dladdsearchdir() no longer reset
  the search path if 'search_dir' == NULL and don't use realloc()
  (might not be available on all platforms),
  removed __P((void)) in the declaration of lt_dlgetsearchpath()
* libltdl/ltdl.h: added lt_dlopenext()
* ltconfig.in: AIX archive commands were broken,
  fixed a MAJOR bug in global_symbol_pipe which caused
  "demo-shared.test;demo-make.test" to fail (libtool must not extract
  undefined symbols of libraries, i.e. symcode must not contain 'U')
* tests/Makefile.am (clean-local): "make distclean" in cdemo, too
1999-01-24 14:24:17 +00:00
Alexandre Oliva
92ee62a8dc * Makefile.am (ltconfig, ltmain.sh): add ChangeLog Revision to
TIMESTAMP
* configure.in: get values of PACKAGE and VERSION set by
AM_INIT_AUTOMAKE, and extract only TIMESTAMP from the ChangeLog
1999-01-22 18:04:51 +00:00
Alexandre Oliva
6fffb233f1 * libltdl/ltdl.c (lt_dlopen): if we're reusing a previously opened
handle, don't reset its name nor add it to the list, and free the
name we have allocated
Reported by Edouard G. Parmelan <Edouard.Parmelan@France.NCR.COM>
1999-01-22 17:08:26 +00:00
Alexandre Oliva
b5f7c8b282 * Makefile.am (ltconfig, ltmain.sh, TIMESTAMP): let's not assume
anything about the format of the date, just that it does not
contain `$'
1999-01-22 15:19:51 +00:00
Gary V. Vaughan
5bd624040c * configure.in (date): echo the version number during
configuration, and show $date for cvs versions.
1999-01-22 14:09:12 +00:00
Gary V. Vaughan
675c928466 * Makefile.am ($(srcdir)/ltconfig): Oops. cvs co keyword
expansion ate the sed expression! Changed sed separator to '%'
because there are '/' in the date.  Added missing '(' to search
expression.  Inserted a null string to stop cvs from expanding it
next time =)O|
($(srcdir)/ltmain.sh): ditto.
1999-01-22 13:27:51 +00:00
Alexandre Oliva
3b6142f95e * Makefile.am (TSDEPS_DIST): dist-time dependencies for timestamps
(timestamps, update-timestamps): check whether TSDEPS_DIST are
up-to-date and update ltconfig and ltmain.sh if needed
(ltconfig, ltmain.sh): depend on TSDEPS; replace @TIMESTAMP@ with
the Date tag in the ChangeLog
(TSDEPS): empty unless overridden by update-timestamps
* ltconfig.in, ltmain.in (TIMESTAMP): append timestamp to most
references to VERSION
1999-01-22 12:21:05 +00:00
Gary V. Vaughan
b69cf9e6cd * ltmain.in (ild): Revert the change which allowed libtool to
link libraries with dependencies on .la libs.
* NEWS: Removed reference to win32, incase 1.3 ships before
ild is ready.
* doc/PLATFORMS: Removed i686-pc-cygwin32, for the same reason.
* doc/libtool.texi: Removed win32 refs, for the same reason.
1999-01-22 12:13:58 +00:00
Alexandre Oliva
4f58a28c53 * ltmain.in (Xsed): add 1 to Xsed definition that goes into
temporary wrapper scripts
* libtool.m4: we don't have Xsed here, expand it manually
Reported by Pavel Roskin <pavel_roskin@geocities.com>
1999-01-22 10:26:47 +00:00
Edouard G. Parmelan
bcdffabfe9 * ltmain.in (finalize_hardcode_libdirs, finalize_rpath): in
platforms that use -rpath, programs must be finalized at
installation time, otherwise build-tree programs will
prefer installed libraries over build-tree ones
1999-01-22 10:01:10 +00:00
Alexandre Oliva
275e35f2f0 fix commit message extraction and some bogus warnings 1999-01-22 09:48:53 +00:00
Alexandre Oliva
f212b8d7df * mdemo/Makefile.am (../libltdl/libtool): if it does not exist,
the sub-make for libltdlc.la will take care of it, but we must at
least provide an empty rule for it, otherwise the sub-make will
never run
1999-01-22 09:39:15 +00:00
Alexandre Oliva
d5b11cbfa2 - add --fast as synonym for -f
- document --msg
- add -q --quiet
- use `cvs -n update' instead of `cvs stat', because stat wouldn't
notice that a conflict had been resolved
- don't leave log_files behind
- don't accept unknown flags before --
- check for common mistakes in ChangeLog entries, and emit warnings
- reject commit message if it does not contain any non-blank line
- add `sleep 1' after running PAGER to give the user some time for a ^C
1999-01-22 07:01:25 +00:00
Alexandre Oliva
340552894a * demo/configure.in, demo/Makefile.am (DLPREOPEN): reverted; it
didn't make any difference.
1999-01-22 06:37:26 +00:00
Gary V. Vaughan
336436d264 * commit: Diagnose non-existant files named on the command line
* commit: Transposition typo re: opt && arg variables in argument
processing case.
1999-01-21 17:48:34 +00:00
Gary V. Vaughan
7badfd3dcf * THANKS: Added Chris Laas <golem@MIT.EDU>
From Chris Laas <golem@MIT.EDU>
* ltmain.in (compile):  corrected a typo in compile mode which
caused "gcc: unrecognized option -c-fPIC" errors due to a missing
space.
1999-01-21 17:37:42 +00:00
Alexandre Oliva
1095b0d2c9 More notes in mail/LTLIBOBJ 1999-01-21 11:58:54 +00:00
Alexandre Oliva
76a9fcc833 Archived some mail in mail/LTLIBOBJ to remind us that
the LTLIBOBJ/LTALLOCA issue needs to be looked at.
1999-01-21 11:54:44 +00:00
Alexandre Oliva
ccce9e5556 Exercise my narcisism =)O| 1999-01-21 11:19:31 +00:00
Alexandre Oliva
981a66b4df * libltdl/configure.in: reintroduce code to detect native library
extension
* libltdl/ltdl.c (lt_dlopen): if a .la file name is given, that's
all.  Otherwise, lt_dlopen now tries to append .la first.  If this
fails, it tries the given filename, and, at last, tries to append
the native library extension to the given filename.
* doc/libtool.texi (lt_dlopen): explain new lookup strategy
1999-01-21 05:08:23 +00:00
Alexandre Oliva
24c33318ba * libltdl/ltdl.c: major rewrite to avoid almost all fixed-size
buffers; only `tmp' in lt_dlopen remained.  But the code got ugly
:-(
1999-01-21 04:27:26 +00:00
Alexandre Oliva
81df2fb6e3 * ltconfig.in (linux-gnu*, finish_cmds): remove erroneous backslash 1999-01-21 04:16:22 +00:00
Alexandre Oliva
0506cf492e * demo/configure.in: set DLPREOPEN to -dlopen if we don't have
shared libraries
* demo/Makefile.am (DLPREOPEN): use instead of -dlpreopen
(STATIC): use $(STATIC), not @STATIC@
* mdemo/Makefile.am (STATIC): ditto
* demo/Makefile.am, mdemo/Makefile.am (STATIC): do not use
1999-01-21 04:09:39 +00:00
Alexandre Oliva
6593e3f41e handle locally added and removed files 1999-01-21 03:54:04 +00:00
Alexandre Oliva
72abadcd76 * tests/demo-shared.test, tests/demo-static.test: new tests
* tests/mdemo-shared.test, tests/mdemo-static.test: ditto
* tests/Makefile.am: ditto
* doc/libtool.texi: document them
* demo/Makefile.am, mdemo/Makefile.am (@STATIC@): do not use
-static unconditionally, it can't work with --disable-static
* demo/configure.in, mdemo/configure.in: check whether libtool was
configured to build static libraries and, if not, set STATIC to an
empty string
1999-01-21 03:50:07 +00:00
Alexandre Oliva
f038450910 * ltmain.in (module, droppeddeps): if libtool could not satisfy
all dependencies of a module, it will only build a static version
of it, and display a warning message
1999-01-21 03:32:53 +00:00
Erez Zadok
26d9358821 major rewrite, with several new command-line options and documentation 1999-01-20 23:28:23 +00:00
Erez Zadok
d172a16cb3 * ltconfig.in (aix4*, with_gcc, archive_cmds): fix typo in Andrey
Slepuhin's last patch
1999-01-20 22:17:39 +00:00
Alexandre Oliva
96f5eb0883 * Makefile.am (@DIST_MAKEFILE_LIST@): work around Ultrix /bin/sh bug
* tests/nomode.test (must specify a MODE): ditto
Reported by Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* THANKS: Added Rainer Orth
1999-01-20 22:12:51 +00:00
Rainer Orth
f42bb6c21f print list of locally modified files to stderr 1999-01-20 22:06:09 +00:00
Rainer Orth
fadbda341d * ltconfig.in: No known version of Solaris 2 hardcoded -L paths. 1999-01-20 21:59:03 +00:00
Erez Zadok
d4cdebab58 fix typo
support -F
1999-01-20 21:57:51 +00:00
Erez Zadok
4bfd53a8f4 major reformatting
support -l
stat only files to be committed
run ${PAGER-more} to view and possibly modify the commit message
remove $log_file if interrupted
1999-01-20 21:02:01 +00:00
Erez Zadok
7821def39b * ltmain.in: s/n\'t/ not/
* doc/PLATFORMS: updates for sunos4/m68k and aix
1999-01-20 20:45:50 +00:00
Andrey Slepuhin
bf5399d059 1999-01-20 Andrey Slepuhin <pooh@msu.ru>
* ltconfig.in (aix4*): check for reworked collect2, always pass
	-bnoentry option to linker when building a shared library
1999-01-20 20:35:54 +00:00
Alexandre Oliva
951fc9f244 * ltmain.in (file_magic): follow soft-links before running `file'
on the candidate library; try to avoid entering endless loop
	Suggested by Nix <nix@esperi.demon.co.uk>
1999-01-20 20:24:54 +00:00
Alexandre Oliva
3f3fe13d1c added new commit script 1999-01-20 20:13:16 +00:00
Alexandre Oliva
a58e998b44 * ltconfig.in (linux*, solaris*, bsdi4*, sys_lib_search_path):
remove expansion of $LD_LIBRARY_PATH
	* ltmain.in (lib_search_path): append the expansion of $shlibpath_var
	* doc/libtool.texi: document it
1999-01-20 19:48:44 +00:00
Alexandre Oliva
8fbb1535e6 * THANKS: Added Steven Schultz
1999-01-20  Steven M. Schultz <sms@wlv.iipo.gtegsc.com>

	* ltconfig.in (bsdi4*, check_shared_deplibs_method): file_magic
	(bsdi4*, sys_lib_search_path): add /shlib and other dirs
1999-01-20 19:30:13 +00:00
Alexandre Oliva
5053e11d81 * cdemo/main.c (main): use K&R definition syntax
* mdemo/main.c (test_dl, main): ditto
	(test_dl): casts return value of lt_dlsym to appropriate types
1999-01-20 18:42:10 +00:00
Alexandre Oliva
1636655430 *** empty log message *** 1999-01-20 18:27:42 +00:00
Alexandre Oliva
19ddb9d9b2 * ltmain.in (dlsyms): #define const to nothing if not __STDC__ 1999-01-20 18:15:19 +00:00
Alexandre Oliva
6935dcde62 * ltconfig.in (global_symbol_pipe): #define const to nothing if
not __STDC__
1999-01-20 18:10:18 +00:00
Alexandre Oliva
79089aad81 * demo/dlmain.c (main): cast s->address to the appropriate pointer
types, otherwise StunOS4's cc refuses to compile it
1999-01-20 18:06:47 +00:00
Alexandre Oliva
8d22e74b08 * ltconfig.in (sunos4*, without_gnu_ld, with_gcc, archive_cmds):
add -fPIC, because libgcc is multilibbed, and we want the PIC
 	version of it for shared libraries, otherwise ld complains
1999-01-20 17:47:48 +00:00
Alexandre Oliva
ca91b60c01 * demo/dlmain.c (main): add missing const to declaration of name 1999-01-20 17:05:29 +00:00
Alexandre Oliva
c914286f6a updated TODO 1999-01-20 13:45:21 +00:00
Alexandre Oliva
19c4321c19 mail/aix has been resolved 1999-01-20 13:16:21 +00:00
Alexandre Oliva
c50684a06e * libltdl/ltdl.c (find_module): remove the libdir argument, and
try to  open library only as old_name and dir/dlname
	(lt_dlopen): use `installed' variable in .la file to decide
	whether to use libdir or objdir
1999-01-20 13:08:50 +00:00
Alexandre Oliva
3770203057 * demo/configure.in (AC_C_CONST): added, for portability
* mdemo/configure.in (AC_C_CONST): ditto
	* libltdl/configure.in (AC_C_CONST, AC_C_INLINE): ditto
	* libltdl/ltdl.c (LTDL_FILENAME_MAX): use FILENAME_MAX if defined
	(FILENAME_MAX): replace all explicit uses with LTDL_FILENAME_MAX
	(presym_free_symlists, trim): don't return void, for portability
	(lt_dlgetsearchpath): replace (void) with __P((void))
1999-01-20 13:01:27 +00:00