977 Commits

Author SHA1 Message Date
Andreas Jaeger
c8d8948b8d * ltmain.in (relink_command): Arrange for wrapper script to save
output to a variable and display it only if relinking fails.
2001-05-03 15:39:52 +00:00
Alexandre Oliva
0d579bb3f6 * ltcf-cxx.sh: Add -nostdlib to HP-UX GCC archive_cmds. 2001-04-27 17:15:06 +00:00
Mark P Mitchell
41d1e5eaf2 * ltcf-cxx.sh: Add -nostdlib to IRIX 6 archive_cmds. 2001-04-27 17:07:33 +00:00
Thomas Tanner
4b0cfb7c36 * TODO: describe problems with libltdl
* ltmain.in (ILD): tidy up, add comments, remove dead code,
  merge duplicate code
* ltmain.in (ILD): don't touch newdependency_libs after scan or
  dlopen pass
* ltmain.in (ILD): don't dlpreopen dependency_libs of a dlopened
  module (remove absolutely wrong quick hack)
* ltmain.in (ILD): remove comments about duplicate removal
* ltmain.in (ILD): build a static-only module if it has
  static libraries in its dependencies (so that libltdl can
  safely load dependency_libs)
* ltmain.in (argument parsing): prefix comparsions of -l args with X,
  replace -lc with `-framework System' _after_ the ILD passes
* ltmain.in (deplibs_check): use portable test syntax
* ltmain.in (help): document -prefer-[non-]pic flags
* ltmain.in: improve readablity by adding some comments,
  rename uninst_* to notinst_* (more adequate name)
2001-04-25 14:26:50 +00:00
Peter Eisentraut
58ca689f39 * ltcf-c.sh, ltcf-gcj.sh: Support $host_os as /sysv5uw7*/ from
newer config.guess in addition to older /unixware*/.  Use
compiler driver, not linker, for linking shared libraries.
2001-04-24 23:58:18 +00:00
Gary V. Vaughan
84768481ad * ltdl.m4 (AC_C_INLINE): No longer required.
* libltdl/ltdl.c (strdup, strcmp, strchr, strrchr, memcpy, trim,
free_vars):  Revoke inline keyword from declarations.  `static
inline' is not very portable, and in addition Unixware 7.1.1's
compiler says you can't access static variables from inline
functions.
Reported by Peter Eisentraut  <peter_e@gmx.net>
2001-04-24 23:03:33 +00:00
Albert Chin-A-Young
700a6e9a7f * ltconfig.in: Handle case where /bin/nm -p outputs multiple
symbol types (like under HP-UX 11.00).
2001-04-24 22:20:08 +00:00
Ossama Othman
2314df62ea * ltcf-cxx.sh (output_verbose_link_cmds): Renamed this variable to
"output_verbose_link_cmd" to better conform to libtool naming
conventions.
2001-04-24 21:35:12 +00:00
Gary V. Vaughan
4222020f0e From Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
* tests/Makefile.am (TESTS_ENVIRONMENT): Make sure the *.test
scripts get the same make that was used in the top level
directory.
2001-04-24 17:16:32 +00:00
Peter Eisentraut
b5c17ff299 * libltdl/ltdl.c (lt_dlexit): Quit loop if only resident modules
are left.
2001-04-23 21:28:25 +00:00
Gary V. Vaughan
1e05bcd7ea From Albert Chin-A-Young <china@thewrittenword.com>
* ltmain.in:  `test -L' is not portable, and infact breaks uninstall
mode on Solaris.  Fallback to `test -h' and finally `test -f',
but be careful not to let the failure status cause libtool to
stop.
2001-04-23 20:11:35 +00:00
Gary V. Vaughan
ad45ffa9b0 From Simon Spero <ses@ibiblio.org>
* ltdl.m4 (AC_LTDL_DLSYM_USCORE):  Add $LIBADD_DL while
checking for dlsym _.

From Simon Spero <ses@ibiblio.org>
* libtool.m4 (lt_cv_deplibs_check_method) [darwin]: Set it!
2001-04-23 00:41:43 +00:00
Gary V. Vaughan
13a31d8996 * Makefile.am (EXTRA_DIST): Distribute bootstrap. 2001-04-22 23:39:23 +00:00
Peter Eisentraut
57024a1cdb * bootstrap: Allow overriding the location aclocal, automake,
autoconf, autoheader from the environment.
2001-04-22 23:34:50 +00:00
Peter Eisentraut
8c36a5ff1f * demo/Makefile.am: Automake 1.4e does not allow `+=' assignments
if the variable was not set with `=' earlier.  `+=' was not useful
here anyway.
2001-04-22 23:13:11 +00:00
Gary V. Vaughan
bcb3a01e01 * ltdl.m4 (AC_CHECK_HEADERS): UW7 has sys/dl.h, so we must
check for that here.
* libltdl/ltdl.c (HAVE_SYS_DL_H):  Include it if necessary for
the dlopen loader.
Reported by Matthew Schalit <mschalit@pacbell.net>
2001-04-22 22:56:18 +00:00
Gary V. Vaughan
30d4b0b4c3 * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Use pass_all for
various releases of UnixWare and OpenServer that support it.
Reported by Matthew Schalit <mschalit@pacbell.net>
2001-04-22 22:38:00 +00:00
Gary V. Vaughan
3d9d5960c3 * TODO: propose pkg-config merge. 2001-04-21 17:38:40 +00:00
Nick Hudson
c225425481 * ltmain.in: Correct an error in yesterday's patch. 2001-04-21 17:24:20 +00:00
Nick Hudson
6f02a20b5d * libtool.m4: Improve NetBSD support.
* ltcf-c.sh: ditto.
* ltcf-gcj.sh: ditto.
* ltmain.in: ditto.
2001-04-20 21:01:36 +00:00
Alexandre Oliva
e7f865f4e3 * ltcf-cxx.sh [HP-UX GNU ld]: Don't use flags specific to the
HP-UX linker.
2001-04-20 08:53:18 +00:00
Alexandre Oliva
d0bb822137 * TODO: Add -L- flag. 2001-04-18 07:25:10 +00:00
Alexandre Oliva
8a1e496a02 * ltcf-c.sh (no_undefined_flag) [Solaris ld]: Change to -zdefs.
* ltcf-cxx.sh (no_undefined_flag) [Solaris ld]: Likewise.
* ltcf-gcj.sh (no_undefined_flag) [Solaris ld]: Likewise.
(archive_cmds, archive_expsym_cmds, output_verbose_link_cmds,
whole_archive_flag_spec) [Solaris]: Copy from ltcf-cxx.sh.
2001-04-12 02:39:37 +00:00
Michael Matz
bce631a344 Typo 2001-04-12 02:28:28 +00:00
Michael Matz
a0920831a8 * ltmain.in: recognize "CC" as default --tag argument to resolve
also ambiguities with that language.
2001-04-12 02:28:10 +00:00
Alexandre Oliva
586ac44e6e * ltmain.in: Mark duplicate libraries appearing in predeps and
postdeps as specialdeplibs.  Explain the whole plan.
2001-04-12 02:20:59 +00:00
Ossama Othman
05b42f84a6 * config.guess: Updated to latest version.
* config.sub: Likewise.
2001-04-11 16:39:39 +00:00
Loren J. Rittle
23ec3c925d * ltcf-cxx.sh: Support creation of C++ shared libraries on
recent versions of FreeBSD (release 3 or later).
* ltconfig.in: On FreeBSD, -lc must not be provided when building
a shared library or else the standard -pthread gcc option is
rendered worthless to later users of the built library.
2001-04-11 16:15:09 +00:00
Ossama Othman
06664a1f85 * AUTHORS: Added myself to the list of maintainers. 2001-04-11 15:52:58 +00:00
Aneesh Kumar K.V
1595461683 * ltcf-cxx.sh (archive_expsym_cmds, osf4/osf5): Added support
for cxx	under Compaq Tru64.
2001-04-10 19:54:42 +00:00
Gary V. Vaughan
c399bfec51 * ltcf-c.sh (hardcode_libdir_flag_spec, osf4/osf5): Use ${wl}
to pass -rpath when compiling with gcc.
Reported by Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
2001-04-08 11:40:15 +00:00
Gary V. Vaughan
eb2ef810dd * libltdl/ltdl.c (sys_shl_open): Cache a handle for the `self'
module, since HPUX adds module symbols into the `self' pool if
it is opened later.  Return the cached pointer if the caller
subsequently tries to open `self'.
(sys_shl_sym): Diagnose NULL modules.
2001-04-08 10:44:49 +00:00
Gary V. Vaughan
6b2289acec From Peter Eisentraut <peter_e@gmx.net>
* ltmain.in (clean,uninstall): test -e is not portable.  Well,
neither is -L, but I'm hoping that redirecting error messages
to /dev/null and relying on non-zero exit status will work okay
on the few hosts that don't support -L.
2001-04-08 10:03:52 +00:00
Nick Hudson
6d5ef47951 * ltmain.in: Improve check for valid -version-info parameter. 2001-04-08 00:41:55 +00:00
Gary V. Vaughan
0b288c0313 From Nick Hudson <skrll@netbsd.org>
* doc/Makefile.am (libtool_TEXINFOS): Add fdl.texi so that it
is included in the distribution.
2001-04-08 00:31:50 +00:00
Peter Eisentraut
5c50967593 * ltmain.in (clean,uninstall): Do not error if the file doesn't
exist and 'rm -f' was used.  Exit with status 1 on error.
2001-04-07 00:32:39 +00:00
Nick Hudson
23b3e57e15 * ltmain.in: Implement a new deplibs_check_method called
match_pattern that does pattern matching on filenames...
* libtool.m4: ...use it with NetBSD
2001-04-06 21:24:52 +00:00
Gary V. Vaughan
d7dfc42553 * doc/libtool.texi (Multiple dependencies): A note about the
problems I've reintroduced by reverting the my patch of 2001-03-31.
2001-04-06 00:57:13 +00:00
Gary V. Vaughan
24a907b4db * tests/Makefile.am (TESTS): Delete references to depdemo-dups.test.
* tests/depdemo-dups.test:  Removed, as part of the patch
reversion below.
* ltmain.in: Revert my change from 2001-03-31.  Although it
was technically correct, it opens a whole can of worms we don't
want to deal with right now.
2001-04-06 00:43:31 +00:00
Gary V. Vaughan
b4e506c485 From Ahmed Masud <masud@googgun.com>
* libltdl/ltdl.c (sys_shl_open):  Return a NULL module handle
for self opening.
(sys_shl_close):  Be careful not to close a NULL module handle.
(sys_shl_sym):  Allow shl_findsym() to open NULL modules, but
discard the modified module address it returns.
2001-04-06 00:29:14 +00:00
Gary V. Vaughan
b24be60ade * libltdl/ltdl.c (lt_dlopen): When reading the .la file,
reallocate the line buffer size if the line overflows the
original buffer.
Reported by Nick Hudson <skrll@netbsd.org>
2001-04-06 00:16:05 +00:00
Gary V. Vaughan
0c8439fd29 * NEWS (1.3d) Removed bogus ltconfig reference. 2001-04-06 00:11:05 +00:00
Robert Boehne
babb5e5b55 Added the pdemo directory and test scripts to test piecewise linking. 2001-04-03 21:47:48 +00:00
Christoph Pfisterer
e906349423 * libtool.m4, ltconfig.in, ltcf-c.sh, ltcf-cxx.sh: Fixed
support for Darwin and Rhapsody. Now correctly hardcodes the
library path and adds versioning. Other small fixes.
* ltmain.in: Fixed special cases for libc and libm on Rhapsody and
Darwin. One of them was misplaced. Added version_type case for
Rhapsody and Darwin, named "darwin".
2001-04-01 14:28:18 +00:00
Gary V. Vaughan
18ea53942b * ltmain.in: Remove the code for stripping duplicate deplibs
from libtool link lines -- duplicates are somtimes necessary
to satisfy inter-library dependencies, and never cause link to
fail even if they are spurious.
* tests/depdemo-dups.test: New file.  Make sure this bug doesn't
creep back in again!
* tests/Makefile.am (TESTS): Use the new test above.
2001-04-01 00:30:34 +00:00
Edward M. Lee
83325ce640 * libltdl/ltdl.c: Use windows paths while calling LoadLibrary. 2001-03-31 11:08:47 +00:00
Edward M. Lee
74c2dfa427 * ltconfig.in, ltcf-c.sh, ltcf-gcj.sh: Generate dll/import
libraries for cygwin according to the following: libFOO.a (static
lib), libFOO.dll.a (import lib), cygFOO-version.dll (dll).  Update
postinstall_cmds and postuninstall_cmds to reflect this.
* ltmain.in: Generate installed .la files with dlnames set to
../bin/cygFOO-version.dll for normal dlls. dlls for modules
remain with the .la file.
2001-03-31 11:05:10 +00:00
Edward M. Lee
e0f4b3a512 * libtoolize.in: change recommendation from AM_PROG_LIBTOOL to
AC_PROG_LIBTOOL.
2001-03-30 22:40:58 +00:00
Edward M. Lee
2a9fb63606 * libtoolize.in: Check configure.ac and prefer configure.ac to
configure.in.
2001-03-30 22:35:20 +00:00
Laurynas Biveinis
ee570d1229 * ltcf-c.sh: Clear ac_cv_prog_cc_pic for DJGPP. Do not add
'-DPIC' to ac_cv_prog_cc_pic for DJGPP.
* ltcf-cxx.sh: Likewise.
* ltcf-gcj.sh: Likewise.
* ltconfig.in: Fix typo.
2001-03-22 18:05:45 +00:00