From 6a52395ed14e0bda22be3fc0819e4507a71278e1 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 6 Apr 2013 10:51:57 -0400 Subject: Clarify LDFLAGS vs. LDLIBS. Fixes Savannah bug #37970. --- doc/make.texi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc') 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 -- cgit v1.2.3