]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
doc: Explain how to specify library dependencies.
authorBruno Haible <bruno@clisp.org>
Tue, 6 May 2025 15:00:51 +0000 (17:00 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Tue, 6 May 2025 18:13:52 +0000 (21:13 +0300)
* doc/libtool.texi (Link mode): Explain how to specify dependencies to
already installed libraries.

doc/libtool.texi

index 60ddab7a17036c9ba1a84796509a1761a6ca2bca..ba64245ebed60aae643a44eb02682bab68a4104b 100644 (file)
@@ -1708,6 +1708,11 @@ Pass a linker-specific flag directly to the linker.
 Pass a link-specific flag to the compiler driver (@code{CC}) during linking.
 @end table
 
+Note: When the output file shall depend on an installed library, you
+cannot specify the library name as @code{@var{dir}/lib@var{name}.a} or
+@code{@var{dir}/lib@var{name}.so} as part of the @var{mode-args}.
+Instead, pass the arguments @code{-L@var{dir}} and @code{-l@var{name}}.
+
 If the @var{output-file} ends in @file{.la}, then a libtool library is
 created, which must be built only from library objects (@file{.lo} files).
 The @option{-rpath} option is required.  In the current implementation,