]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
doc: Clarify where to put -L and -l options.
authorBruno Haible <bruno@clisp.org>
Wed, 14 May 2025 21:41:55 +0000 (14:41 -0700)
committerKarl Berry <karl@freefriends.org>
Wed, 14 May 2025 21:41:55 +0000 (14:41 -0700)
From https://bugs.gnu.org/78411.

* doc/automake.texi (Linking): Clarify that -L and -l options
belong in LDADD.

doc/automake.texi

index bdd615e2d09faa34ce38829ce2d7d9a1dd3e1210..3cbbff2504341cb99737d79e3f00f8f3b8065947 100644 (file)
@@ -4946,9 +4946,12 @@ and Lex}.
 
 If you need to link against libraries that are not found by
 @command{configure}, you can use @code{LDADD} to do so.  This variable is
-used to specify additional objects or libraries to link with; it is
-inappropriate for specifying specific linker flags; you should use
-@code{AM_LDFLAGS} for this purpose.
+used to specify additional objects or libraries to link with.
+Libraries to link with can be indicated either as file names or
+through @code{-L} and @code{-l} options.
+
+For other linker options (not @code{-L} or @code{-l}), @code{LDADD}
+is inappropriate.  You should use @code{AM_LDFLAGS} for this purpose.
 @vindex LDADD
 @vindex AM_LDFLAGS