Commit Graph

271 Commits

Author SHA1 Message Date
Gary V. Vaughan
0bc7443c32 * ltconfig.in (pic_flag): Accept, in order of decreasing
preference:  the cached value; the default value for the current
host.  Also test that the compiler accepts the flag, and cache
that result too.
1999-06-09 08:34:28 +00:00
Gary V. Vaughan
1c938ef7b5 * ltconfig.in (LN_S): Accept, in order of decreasing preference:
the cached value; an environment setting; ``ln -s'' if it works;
``ln'' if ``ln -s'' doesn't appear to work.
1999-06-08 15:20:28 +00:00
Gary V. Vaughan
f9312a8076 * ltconfig.in (objext): Accept, in order of decreasing preference:
the cached value; the result of a test object compilation.
1999-06-08 15:00:17 +00:00
Gary V. Vaughan
63ccc1e0fd * ltconfig.in (RANLIB): Accept, in order of decreasing preference:
the cached value; an environment setting; the first file called
``ranlib'' in the user's path.
1999-06-08 14:19:02 +00:00
Gary V. Vaughan
cbd4699dab * ltmain.in (exeext): Use $exeext when working out the names of
programs (but not the wrapper script itself due to a stupidity in
win32 which hardwires the .exe extension to the binary loader!).
* ltconfig.in (exeext): Now that the wrapper script tries to move
executables, we need to know whether they have an extension (ala
AC_EXEEXT).  Since we can't rely on AC_EXEEXT having been called
in configure.in, we must be able to check for ourselves, though we
can look for a cached result incase AC_EXEEXT was called.
1999-06-08 12:52:33 +00:00
Gary V. Vaughan
2be972d59a * ltconfig.in (cygwin, need_version): Set to no, otherwise module
dll's end up with mighty long names!
1999-06-08 10:15:02 +00:00
Gary V. Vaughan
30d470e162 * ltconfig.in (cygwin, pic_flag): Force separate compilation of
objects for dlls vs. objects for static archives.  Using a cpp
macro also allows us to decide whether or not we need to use
dllexport/import declarations.
1999-06-08 10:03:41 +00:00
Alexandre Oliva
ceae7433c3 * ltconfig.in: Support new GNU ld --help output format.
* NEWS:  Likewise.
Reported by Gaël Quéri <gael@baoule.dyndns.org> and
H.J. Lu <hjl@varesearch.com>.
1999-06-06 23:52:36 +00:00
Mark Kettenis
483db00d68 * ltconfig.in: Update support for the Hurd. Make sure that the
soname includes the major version number and create the	right
links.  Allow shared objects without the `lib' prefix and without
version information.
1999-06-05 09:31:39 +00:00
Pavel Roskin
4cf171585d * ltconfig.in (GNU Hurd, deplibs_check_method): Use pass_all. 1999-05-27 11:53:54 +00:00
Alexandre Oliva
ec523ab5d2 * ltconfig.in (export_symbols_cmds): Add $convenience.
(cygwin, export_symbols_cmds): Ditto.
* ltmain.in: Generate export symbol list before expanding
convenience libraries, to avoid passing whole_archive_flag_spec to
$NM.
Reported by Godmar Back <gback@cs.utah.edu>
1999-05-27 10:45:32 +00:00
Alexandre Oliva
1cdc846ad0 typo spotted by Gary 1999-05-25 22:15:34 +00:00
Alexandre Oliva
1dc69d9315 * ltconfig.in (solaris*, ld_shlibs): Do not enable shared
libraries with GNU ld 2.8.*, it's broken.  Emit a warning
suggesting an upgrade.
Reported by Brian Ford <ford@vss.fsi.com> and Ronald Pijnacker
<Ronald.Pijnacker@best.ms.philips.com>
1999-05-25 18:33:03 +00:00
Alexandre Oliva
8c1990eccf * NEWS: support for installing stripped libraries using GNU strip
* ltconfig.in: set deplibs_check_method=pass_all on FreeBSD,
  Linux and Solaris since no one can reproduce the famous deplibs
  bug
* ltmain.in: preserve $CC (reported by Tom Tromey),
  strip libraries using GNU strip if it's available and the
  -s flag was passed to "install"
1999-05-25 16:05:50 +00:00
Thomas Tanner
1b2ea275d2 * NEWS: updated
* TODO: -Wc, -Wl, implemented
* AUTHORS: changed my email address
* doc/libtool.texi: fix "wierd" typo :)
* ltmain.in: linking against convenience libraries was broken,
  implemented the "-Wc," "-Wl," "-Xcompiler" "-Xlinker" flag for
  compiler and linker-specific flags,
  add -lc before we do the deplibs check
* ltconfig.in: linkopts -> compiler_flags for $CC and linker_flags
  for $LD, link_all_deplibs=yes on IRIX


* NEWS: insert todays date alongside 1.3.1 release.
* Makefile.in: use gnu not gnits rules
* config.guess: synch with gnu common & apply Takabatake-san's
MIPS *000 patch.
* config.sub: synch with gnu common.
1999-05-22 18:04:32 +00:00
Thomas Tanner
1707ab25bb * bootstrap: fix libltdl/Makefile.in
* cdemo/main.c: "Welcome _to_ ..."
* mdemo/main.c: ditto
* libltdl/configure.in: support multiple dlopening mechanisms
  at once
* libltdl/ltdl.c: prefix system dependent functions with "sys_"
  to avoid symbol conflicts (libdld didn't work)
* libtool.m4 (AC_LIBLTDL_*): set INCLTDL to the path of ltdl.h
* ltconfig.in: check for dlopen with -ldl first
1999-05-20 17:54:09 +00:00
Gary V. Vaughan
32c0b8b4f2 * ltconfig.in (cygwin*, whole_archive_flag_spec): dlltool chokes
on this, so leave it unset in this case so that the ltmain code
knows it has to unpack convenience archives by itself.
1999-05-18 11:27:10 +00:00
Jiro Takabatake
71dc9a2ec9 * ltconfig.in: port to NEC UX/4800.
* NEWS: updated.
1999-05-17 15:42:59 +00:00
Gary V. Vaughan
e9a99a7f0c * ltconfig.in (beos*, deplibs_check_method): set to pass_all. BeOS
is PIC by default.
Reported by "Shawn T . Amundson" <amundson@gimp.org>
1999-05-17 15:20:34 +00:00
Alexandre Oliva
bf145d1820 * ltconfig.in (solaris2.6, whole_archive_flag_spec): Do not use
-Wl for allextract.
1999-05-17 02:33:57 +00:00
Alexandre Oliva
7f9b14e853 Revert last Ossama's patch. autoconf does not use extern "C", so we
shouldn't either, otherwise libtool might think we have dlopening while
libltdl might not be able to deliver it.
1999-04-29 08:03:41 +00:00
Ossama Othman
2354bb3a0d * ltconfig.in (dlopen): Declare it as extern "C" in C++. 1999-04-29 07:53:53 +00:00
Gary V. Vaughan
68a7dcd93f * libtool.m4 (ltconfig_enable_win32_dll): pass --enable-win32-dll to
ltconfig if this is set.
(AC_LIBTOOL_WIN32_DLL): New macro required for libtool to attempt
a dll build on win32 hosts.
* ltconfig.in (--enable-win32-dll): new flag for the cli.
(cygwin*|mingw*|os2*, ltconfig_enable_win32_dll): if this is not set
to yes, then do not attempt to build shared libraries.
* doc/libtool.texi: document AC_LIBTOOL_WIN32_DLL.
* NEWS: noted new macro.
1999-04-28 15:26:14 +00:00
Thomas Tanner
9d87d7b208 * NEWS: new clean mode
* THANKS: added Ossama Othman
* doc/libtool.texi: documented the new `clean' mode
* ltconfig.in: set need_version=no on OSF (reported by
  Marcus Sundberg <mackan@stacken.kth.se>)
* ltmain.in: allow absolute non-existant -L paths,
  always use output_objdir instead of objdir for temporary files,
  delete generated temporary symbol lists,
  don't add .la twice in the pseudo-library header,
  implemented and documented clean mode (deletes libraries,
  programs and object files and the files associated with them),
  if build_libtool_libs=no and no static library is available,
  try to link the program against the shared library,
  don't add a statically linked library to the dependency_libs
* ltmain.in (help uninstall): added a missing backslash
  after echo (reported by Ossama Othman)
1999-04-27 17:30:20 +00:00
Alexandre Oliva
02d6bd0eea * ltconfig.in (compiler_c_o): Make sure the compiler does not
create temporaries in the current directory when output should go
elsewhere.  We must perform locking if it does.
1999-04-27 09:42:17 +00:00
Alexandre Oliva
d3734e0273 * ltconfig.in (aix4.[01], always_export_symbols): The case pattern
would never match; fixed.
Reported by Stephan Kulow <coolo@itm.mu-luebeck.de>
1999-04-26 23:34:46 +00:00
Frank Ch. Eigler
36e0c3cf90 * libtool.m4 (cygwin*): Look for target objdump tool.
* ltconfig.in (cygwin*, file_magic_cmd): Use autoconf-located target
objdump tool.  Track OBJDUMP like DLLTOOL and AS.

* ltconfig.in (cygwin*, deplibs_check_method): Accept
"architecture: i386" as optional suffix, for it is printed on a
separate line sometimes.

* ltmain.in (cygwin*, ltdll.c): Wrap DllMain declaration in extern "C".

* ltmain.in (deplibs_check_method=file_magic): Redirect stderr to
/dev/null, to suppress error messages from target objdump.
1999-04-25 18:54:24 +00:00
Alexandre Oliva
caae05bd39 * ltconfig.in (irix*, soname_spec, library_names_spec): Missing
dots before $versuffix and $major.
1999-04-25 17:05:18 +00:00
Alexandre Oliva
b607707d5d patch misapplied Solaris whole_archive_flag_spec diff 1999-04-25 11:21:59 +00:00
Alexandre Oliva
ac6bf76b30 * ltconfig.in: Correct sed expression that extracts symbols
from cygwin def files.  Ignore demangled C++ names, if any.
1999-04-25 10:38:46 +00:00
Alexandre Oliva
b5efe17eca * ltconfig.in (solaris*, whole_archive_flag_spec): Use -z
allextract/defaultextract from Solaris 2.6 on.
Reported by Brian Ford <ford@vss.fsi.com>
1999-04-25 10:34:51 +00:00
Alexandre Oliva
66ce64ca69 * ltconfig.in (beos*, allow_undefined_flag): Do not build shared
libraries with undefined symbols.
1999-04-25 10:32:07 +00:00
Alexandre Oliva
e330989537 * ltconfig.in (aix4*, allow_undefined_flag): Set to -berok.
(aix4*, shared_flag): Set to -shared or ${wl}-bM:SRE.
(aix4*, archive_cmds): Use -bexpall.
(aix4*, archive_cmds, archive_expsym_cmds): Use shared_flag and
allow_undefined_flag.
(aix4*, always_export_symbols): Set to yes up to AIX 4.1.*,
because -bexpall is supported from 4.2 on.
Reported by Greg Wooledge
<ic5035%tss1crs.amgreetings.com@rose.amgreetings.com>
1999-04-25 10:29:17 +00:00
Alexandre Oliva
9d444a66b1 * ltconfig.in (hpux*, hardcode_minus_L): Set to yes.
(hpux*, hardcode_libdir_flag_spec): Do not use +s by default.
(hpux*, shlibpath_overrides_runpath): Set to no.
1999-04-25 10:22:09 +00:00
Alexandre Oliva
92b238c48e * ltconfig.in (irix*, osf*, archive_cmds): Write so_locations
within objdir.
1999-04-25 10:15:34 +00:00
Alexandre Oliva
76e02f69fe * ltconfig.in (irix*, soname_spec): Append $major.
(irix*, library_names_spec): Add new soname.
Reported by David Kaelbling <drk@sgi.com>
1999-04-25 10:10:34 +00:00
Alexandre Oliva
1ff083da25 * ltconfig.in (irix*, sys_lib_dlsearch_path_spec): /usr/local/lib
is not searched by default.  /usr/lib is searched before /lib.
* ltconfig.in (irix*, sys_lib_search_path_spec): /usr/lib is
searched before /lib.
1999-04-25 10:07:51 +00:00
Alexandre Oliva
ea746ffc14 * ltconfig.in (irix5*, need_lib_prefix, need_version): Set to no,
by unifying with irix6*.
1999-04-25 10:04:25 +00:00
Alexandre Oliva
fd2ecbb17b * ltconfig.in (irix*, osf*, deplibs_check_method): Use pass_all. 1999-04-25 09:53:35 +00:00
Alexandre Oliva
847e6e7b5b * ltconfig.in (old_LDFLAGS, old_LIBS): Save and write to comments
in output file.
1999-04-25 09:44:41 +00:00
Boyd Lynn Gerber
39328123fa * ltconfig.in (sco3.2v5*): Use LD_RUN_PATH for hard-coding. 1999-04-25 09:25:47 +00:00
Thomas Tanner
c836f3090d * libltdl/configure.in: check for shl_load in libdld
* libltdl/ltdl.c (shl_close, shl_sym): use (shl_t *) instead of shl_t
* ltconfig.in (check for gcc): removed a bogus line,
  check for shl_load in libdld
* ltmain.in: added a warning to the header of the .la file
  to warn users against deleting the file,
  link shared against static libraries if
  deplibs_check_method == pass_all
1999-04-11 21:10:04 +00:00
Alexandre Oliva
4dac81d0d7 * libtool.m4 (AC_PROG_LD, AC_PROG_NM): When looking for programs,
try $ac_exeext too, so that they're found on DJGPP/MS-DOS.
* ltconfig.in: Likewise.
Reported by Robert S. Maier <rsm@math.arizona.edu>
1999-04-10 05:42:35 +00:00
Alexandre Oliva
6103261ff5 * ltconfig.in (Usage): Removed --enable-dlopen-self.
Reported by Pavel Roskin <pavel_roskin@geocities.com>
1999-04-10 05:12:17 +00:00
Alexandre Oliva
b4c360e9bc * ltconfig.in: Moved sysv4 before sysv4.*.
(symcode): Brian's overrider is specific to sysv4, not sysv4*.
1999-04-10 04:54:50 +00:00
Thomas Tanner
1ebc0a7f9b * NEWS, README: Motorola System V 4 support
* doc/PLATFORMS: added mk88-motorola-sysv4
* ltconfig.in: installed patch from Brian Ford <ford@vss.fsi.com>
  to support mk88-motorola-sysv4
1999-04-09 18:47:16 +00:00
Alexandre Oliva
45641b8620 * ltconfig.in (--fallback-echo): Do not put an inline document and
an exec in the same if construct; otherwise the inline document
may not be removed.
* ltmain.in (--fallback-echo): Likewise.
Reported by John David Anglin <dave.anglin@nrc.ca>
1999-04-08 00:47:59 +00:00
Thomas Tanner
87f8ef6d60 * NEWS: improved DJGPP support
* doc/libtool.texi: removed hardcode_into_libs documentation
* libtool.m4: some DJGPP fixes
* ltconfig.in: ditto, reverted one of my previous patches: we need
  to check for NM, removed the hardcode_into_libs support since
  no platform seems to support it
* ltmain.in: some DJGPP fixes, removed the hardcode_into_libs support
1999-04-06 22:08:59 +00:00
Alexandre Oliva
314ef2c7d1 * ltconfig.in (netbsd*, GNU ld): Support a.out shared libraries 1999-04-05 21:29:00 +00:00
Alexandre Oliva
8e2656a10d * ltconfig.in (exclude_expsyms): Exclude _GLOBAL_OFFSET_TABLE_ by
default, as most a.out platforms use it, and end up in trouble if
we preload it, so it's safer to rule it out by default, and
special case its removal from exclude_expsyms if someone ever
complains.
1999-04-05 21:04:32 +00:00