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

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