Blame SOURCES/autofs-5.0.7-dont-override-LDFLAGS-in-make-rules.patch

304803
autofs-5.0.7 - don't override LDFLAGS in make rules
304803
304803
From: Ian Kent <ikent@redhat.com>
304803
304803
Ensure that externally defined LDFLAGS is not overridden.
304803
---
304803
 CHANGELOG      |    1 +
304803
 Makefile.rules |    6 +++---
304803
 2 files changed, 4 insertions(+), 3 deletions(-)
304803
304803
diff --git a/CHANGELOG b/CHANGELOG
304803
index 5d90139..37eac72 100644
304803
--- a/CHANGELOG
304803
+++ b/CHANGELOG
304803
@@ -53,6 +53,7 @@
304803
 - fix probe each nfs version in turn for singleton mounts.
304803
 - misc man page fixes.
304803
 - fix add null check in parse_server_string().
304803
+- don't override LDFLAGS in make rules.
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
diff --git a/Makefile.rules b/Makefile.rules
304803
index f2ba386..6b5b2bd 100644
304803
--- a/Makefile.rules
304803
+++ b/Makefile.rules
304803
@@ -24,16 +24,16 @@ endif
304803
 
304803
 ifdef DEBUG
304803
 CFLAGS    ?= -g -Wall -DDEBUG
304803
-LDFLAGS   = -g
304803
+LDFLAGS   ?= -g
304803
 STRIP     = :
304803
 else
304803
 ifdef DONTSTRIP
304803
 CFLAGS    ?= -O2 -g
304803
-LDFLAGS   = -g
304803
+LDFLAGS   ?= -g
304803
 STRIP     = :
304803
 else
304803
 CFLAGS    ?= -O2 -Wall
304803
-LDFLAGS   = -s
304803
+LDFLAGS   ?= -s
304803
 STRIP     = strip --strip-debug
304803
 endif
304803
 endif