Commit Graph

421 Commits

Author SHA1 Message Date
Albert Chin-A-Young
47a39a1801 * ltmain.in: Piecewise linking doesn't work when the output
file is an absolute path, use the basename only instead.
2004-03-24 03:03:05 +00:00
Albert Chin-A-Young
4886dc757a * ltmain.in: When a library is installed, dependent on a
convenience library, and it involves relinking, the object
files extracted from the convenience library are not removed
after the relink. This is a problem if you build as non-root,
install as root, then try to remove the build directory as
non-root; Clean up properly if relink fails; Change
"$realname"U to ${realname}T to be consistent.
2004-03-24 02:59:28 +00:00
Scott James Remnant
3a24ed2b3e * ltmain.in <prog linkmode>: Always add -L options to
$newlib_search_path instead of just in scan mode to ensure that
non-libtool libraries in user-specified directories can be found.
2004-03-24 02:35:33 +00:00
Peter O'Gorman
231ac6f7d3 * ltmain.in (link_all_deplibs,darwin): Link libraries in the
correct order. Bug from Zachary Pincus <zpincus@stanford.edu>.
2004-03-14 14:36:54 +00:00
Scott James Remnant
e666f98829 * m4/ltmain.in: Only check precious_files_regex if it is not empty. 2004-03-14 14:14:32 +00:00
Gary V. Vaughan
c86c323877 * ltmain.in <install mode>: Add missing --help doc for
-inst-prefix option.
2004-02-23 16:59:14 +00:00
Gary V. Vaughan
8355ba6c65 * ltmain.in <link mode>: Add missing --help doc for -shrext
option.
2004-02-23 16:43:42 +00:00
Gary V. Vaughan
b1a6d2d3c1 * ltmain.in (IFS): Move '\n' to beginning of IFS so that emacs
doesn't offer to strip trailing ' \t' on every save.
2004-02-23 16:00:37 +00:00
Gary V. Vaughan
d77a1e7dfa * ltmain.in: Add missing --help doc for --preserve-dup-deps. 2004-02-23 15:52:18 +00:00
Peter O'Gorman
62e21425d6 * m4/libtool.m4, ltmain.in: Rename shrext to shrext_cmds. 2004-02-15 13:30:01 +00:00
Scott James Remnant
0964364db2 * ltmain.in, libtoolize.in, commit, config/mailnotify: Correctly
quote usage of $basename and $dirname to avoid (unlikely) path
expansion.
2004-02-13 07:26:08 +00:00
Scott James Remnant
d9e97e3854 * tests/sh.test: Test the config/ltmain.sh and libtoolize in the
build directory not the source directory, where they won't exist
during 'make distcheck'.
* ltmain.in: Revert one line of previous intendation clean-up
to enable one of the sh.test checks to pass.
2004-02-13 01:57:52 +00:00
Albert Chin-A-Young
04539d396a Scott James Remnant <scott@netsplit.com>
* ltmain.in: Fix typo: duplcations -> duplications,
Fix indentation of a handful of badly indented blocks,
Fix last remaining use of 'grep' to $GREP,
Remove unnecessary trailing slash where we break a line on a
command separator.
* m4/libtool.m4: Also remove unnecessary trailing slash where
we break a line on a command separator.
2004-02-12 23:47:46 +00:00
Scott James Remnant
c96c655eb4 * ltmain.in: Remove duplicated version checking block. 2004-02-12 22:32:01 +00:00
Scott James Remnant
b042a87d13 * ltmain.in, libtoolize.in, commit, config/mailnotify: Remove
$SED from definitions of $dirname and $basename and prefix each
use with it instead.  Some shells (zsh) treat the expansion as
a single command instead of a command with arguments.
2004-02-12 19:22:28 +00:00
Scott James Remnant
eb398417ae * ltmain.in: Fix typo: macro's -> macros. 2004-02-12 18:41:26 +00:00
Scott James Remnant
c0dfc67e82 * ltmain.in: Correct definition of basename sed expression to
not include single quotes.
2004-02-12 18:37:14 +00:00
Albert Chin-A-Young
8bab449346 * ltmain.in (progpath): Work around backward compatibility issue
on IRIX 6.5. On IRIX 6.4+, sh is ksh but when the shell is invoked
as "sh" and the current value of the _XPG environment variable is
not equal to 1 (one), the special positional parameter $0, within
a function call, is the name of the function. So, rather than
using "$0" in functions, we set $progpath in the body and use that
everywhere instead (incase of code refactoring later).
(EXIT_SUCCESS, EXIT_FAILURE, EXIT_MISMATCH): For clarity.
2004-02-12 12:27:46 +00:00
Gary V. Vaughan
c695fe18f5 * NEWS, bootstrap, configure.ac, ltmain.in, m4/libtool.m4:
* m4/lt~obsolete.m4, tests/cdemo/configure.ac: Arghh.  cvsapply just
went crazy and committed a bunch of stuff that shouldn't have been
in the last changeset.  The patch backs it all out.
2004-02-10 20:45:41 +00:00
Gary V. Vaughan
c72336465d * config/mailnotify: New file for mailing commit notifications,
imported from cvs-utils.
* commit: Updated from cvs-utils and tweaked for libtool.
* Makefile.am (EXTRA_DIST): Add config/mailnotify.
2004-02-10 19:47:00 +00:00
Gary V. Vaughan
4a9ead32fb * m4/ltversion.in: New file to capture what version number macros
are being used.
* Makefile.am (m4/ltversion.m4): New rule to create it from
m4/ltversion.in.
(nodist_pkgmacro_DATA): Add m4/ltversion.m4.
(EXTRA_DIST): Add m4/ltversion.in.
* m4/libtool.m4 (AC_LIBTOOL_SETUP): AC_REQUIRE LTVERSION_VERSION
from ltversion.m4.
* bootstrap: Call the Makefile.am to create an initial
m4/ltversion.m4.
* ltmain.in: Diagnose version mismatches of various flavours.
* TODO: Remove mismatch item.
* NEWS: Updated.
2004-02-06 17:23:40 +00:00
Peter O'Gorman
a9151fe677 * ltmain.in (infer_tag, win32_libid): Style changes. Rename
infer_tag to func_infer_tag and win32_libid to func_win32_libid.
* m4/libtool.m4 (cygwin): rename win32_libid to func_win32_libid.
2004-02-05 14:53:16 +00:00
Peter O'Gorman
c76530e05e * ltmain.in (infer_tag): Move tag inferrence to a shell function.
Also test $base_compile against $CC with escaped arguments. Bug
reported by Geoff Keating <geoffk@apple.com>.
2004-02-04 14:39:02 +00:00
Scott James Remnant
21b9758e8c * ltmain.in: Create temporary directory under a strict umask
rather than running chmod afterwards, preventing a race
condition where the directory could be replaced with a symbolic
link in the time between the two commands.
2004-02-03 22:02:51 +00:00
Gary V. Vaughan
a9d07029d6 * m4/libtool.m4 (LT_AC_PROG_EGREP): Wrapper for AC_PROG_GREP.
AIX has a brain-dead grep that only handles lines < 2048
characters.  Default GREP incase we are not using a future
autoconf that sets it for us :-)  Changed all callers to use $GREP
instead of grep, and to AC_REQUIRE LT_AC_PROG_EGREP.
Declare GREP as a libtool config var.
* ltmain.in: Use it.
* tests/sh.test (scripts): Accept `if $GREP "^foo=bar"' by
tightening the regexp.
Reported by Albert Chin-A-Young  <china@thewrittenword.com>
2004-01-22 15:27:25 +00:00
Benjamin Reed
de50d5cf48 * ltmain.in: Fix handling of frameworks in search paths. Also
a one-liner fix to eval shrext in the libtool library search.
2004-01-19 04:57:26 +00:00
Scott James Remnant
08e80547ba * ltmain.in: new -precious-files-regex link mode option
to prevent removal of matching files from the temporary
output directory.
(Debian Bug #221420)
* doc/libtool.texi: document the new option.
* NEWS: announce the new option.
2004-01-12 02:32:50 +00:00
Gary V. Vaughan
3f084a6e89 * ltmain.in: Output 2004 in the copyright from libtool --version. 2004-01-06 19:26:17 +00:00
Stefan Nordhausen
5f2a0ecae7 Scott James Remnant <scott@netsplit.com>
* m4/ltmain.in: Don't use the mkdir -p option when creating a
temporary output directory so a symlink attack can't be used to
arbitrarily chmod other directories on the system if libtool
gets run as root.
2004-01-03 14:45:59 +00:00
Peter O'Gorman
9b663ef2e4 * m4/libtool.m4 (CDPATH): Change the CDPATH setting so that it
allows for zsh differences, as noted in the autoconf manual's
Portable Shell - Special Shell Variables section.
2004-01-02 23:04:21 +00:00
Scott James Remnant
dff2249409 Updated all copyright notices to include 2004.
* NEWS: Next release will be in 2004.
2004-01-02 01:59:11 +00:00
Scott James Remnant
81c873e7b5 * ltmain.sh: Infer tagged configuration for link mode with the
full compiler arguments available rather than only the first.
2003-12-31 01:33:53 +00:00
Alexandre Duret-Lutz
7983eaf90b * ltmain.sh: Quote $exec_cmd before it is eval'ed, so that
libtool --mode=execute echo '4 * 5' does not expand the `*'.
2003-12-31 00:31:23 +00:00
Gary V. Vaughan
9a7495a24d * config/mkstamp: Change output format to ` $rev $date'.
* configure.ac: Make the banner more like suggestions in
http://www.gnu.org/prep/standards_toc.html Section 4.6.
* libtoolize.in: Make --version output conform to the GNU
standard.
* ltmain.in: Ditto. And tweak the generated file headers to
match.
2003-11-26 12:34:23 +00:00
Peter O'Gorman
33a0b234b0 * ltmain.in: Test $old_striplib before using it, not $striplib. 2003-11-22 14:12:57 +00:00
Peter O'Gorman
65021963c3 * ltmain.in: Move eval to after command separation to allow ~ in paths. 2003-11-22 14:03:35 +00:00
Peter O'Gorman
f97c9e4568 * ltmain.in: Check for module_cmds if max_cmd_len is exceeded too. 2003-11-22 13:58:35 +00:00
Scott James Remnant
fec57b3fba * ltmain.in: In compile mode, delay parsing of -shared, -static,
-prefer-pic and -prefer-non-pic until after tagged configuration
has been read.  In link mode, read tagged configuration before
parsing any arguments.  These arguments will now work when using
a non-C compiler.
2003-11-17 11:19:07 +00:00
Scott James Remnant
503555927d * ltmain.in: Add -pthread and similar to $deplibs ($compile_deplibs
and $finalize_deplibs for programs) when found on the command line
or in a .la file's dependency_libs (but don't place them there) so
they are honoured when linking both programs and libraries.
2003-11-10 21:06:49 +00:00
Peter O'Gorman
b735ac56a8 * ltmain.in (linkalldeplibs,darwin): Fix a bug reported by Idar
Tollefsen where a dir could be added to the link line with no '-L'
on darwin.
2003-11-09 14:54:52 +00:00
Charles Wilson
a351cf7e5e * ltmain.in (find_executable, check_executable) [cygwin*, mingw*]:
binary wrapper used with uninstalled executables breaks when
invoked via execlp/execvp (that is, via $PATH).  Handle that case.
(fnqualify): Subsumed into find_executable.
2003-11-06 14:21:15 +00:00
Scott James Remnant
c75128d25d * ltmain.in: When relinking, place the -L parameter containing
the installation prefix directory after the intended destination,
so we don't accidentally link against an older installed library.
2003-11-01 15:03:09 +00:00
Kevin P. Fleming
e0da307341 * ltmain.in: include --tag options, if specified, in the
relink_command in uninstalled .la files.  Also, preserve --silent,
--debug options when libtool re-execs itself.
* NEWS: Updated.
2003-10-20 13:36:10 +00:00
Gary V. Vaughan
1a5dfde5cd * ltmain.in: Don't suppress output of PIC mode compile if
-no-suppress option is given.
* doc/libtool.texi (Invoking libtool): Document it.
* NEWS: Updated.
2003-10-07 17:13:42 +00:00
Ralph Schleicher
3bdc61dbfc * ltmain.in: Do not create .o' objects when -shared' is
specified in compile mode.
Do not make a static library when `-shared' is specified in link
mode.
* doc/libtool.texi (Compile mode): Document it.
* NEWS: Updated.
2003-10-07 16:48:23 +00:00
Ralph Schleicher
331b0b57a5 * doc/libtool.texi (Compile mode): Be more specific about the
effect of `-static'.
* ltmain.in: Do not create `.lo' objects when `-static' is
specified.
* NEWS: Updated.
2003-10-07 16:32:58 +00:00
Gary V. Vaughan
310b8e2d8c * doc/libtool.texi (Invoking libtool): Updated.
* ltmain.in: Add missing clean and finish modes to the shorthand
options.
2003-10-07 14:51:06 +00:00
Gary V. Vaughan
08849ebfb4 * ltmain.in: Typo in the --mode shorthand. 2003-10-07 14:34:45 +00:00
Peter O'Gorman
eb8a008f12 * ltmain.in: Specifying -allow-undefined is now an error. 2003-10-05 15:27:34 +00:00
Peter O'Gorman
46639155f3 * ltmain.in: Remove inferrence of mode, add shorthand for mode
choice.
2003-10-05 14:50:14 +00:00