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

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