summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-04-06 10:51:57 -0400
committerPaul Smith <psmith@gnu.org>2013-04-06 10:51:57 -0400
commit6a52395ed14e0bda22be3fc0819e4507a71278e1 (patch)
treecd59a458726d2b307288cc627d7643d085fde574
parent29cd1e9699d1101444920827b412191e0f92e1e1 (diff)
downloadgunmake-6a52395ed14e0bda22be3fc0819e4507a71278e1.tar.gz
Clarify LDFLAGS vs. LDLIBS. Fixes Savannah bug #37970.
-rw-r--r--ChangeLog3
-rw-r--r--doc/make.texi6
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1318e5b..744eb07 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2013-04-06 Paul Smith <psmith@gnu.org>
+ * doc/make.texi (Implicit Variables): Clarify LDFLAGS vs. LDLIBS.
+ Fixes Savannah bug #37970.
+
* remake.c (check_dep): Reconsider files waiting on prerequisites,
as they may have finished. Fixes Savannah bug #37703.
diff --git a/doc/make.texi b/doc/make.texi
index 2fe7aa6..dffa14d 100644
--- a/doc/make.texi
+++ b/doc/make.texi
@@ -9377,14 +9377,16 @@ Extra flags to give to the SCCS @code{get} program.
@item LDFLAGS
@vindex LDFLAGS
Extra flags to give to compilers when they are supposed to invoke the linker,
-@samp{ld}.
+@samp{ld}, such as @code{-L}. Libraries (@code{-lfoo}) should be
+added to the @code{LDLIBS} variable instead.
@item LDLIBS
@vindex LDLIBS
@vindex LOADLIBES
Library flags or names given to compilers when they are supposed to
invoke the linker, @samp{ld}. @code{LOADLIBES} is a deprecated (but
-still supported) alternative to @code{LDLIBS}.
+still supported) alternative to @code{LDLIBS}. Non-library linker
+flags, such as @code{-L}, should go in the @code{LDFLAGS} variable.
@item LFLAGS
@vindex LFLAGS