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

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