GNU bug report logs -
#78411
LDADD vs. LDFLAGS
Previous Next
Reported by: Bruno Haible <bruno <at> clisp.org>
Date: Tue, 13 May 2025 17:00:02 UTC
Severity: normal
Done: Karl Berry <karl <at> freefriends.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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.
Thanks Bruno. Pushed as written. -k
This bug report was last modified 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.