Blame SOURCES/0003-ipvsadm-use-CFLAGS-and-LDFLAGS-environment-variables.patch

c3b704
From 25d7aa2faef0c36f053ee1ba418fe14022ef6f7c Mon Sep 17 00:00:00 2001
c3b704
From: Ryan O'Hara <rohara@redhat.com>
c3b704
Date: Tue, 27 Feb 2018 11:49:44 -0600
c3b704
Subject: [PATCH] ipvsadm: use CFLAGS and LDFLAGS environment variables
c3b704
c3b704
Signed-off-by: Ryan O'Hara <rohara@redhat.com>
c3b704
---
c3b704
 Makefile         | 6 +++---
c3b704
 libipvs/Makefile | 2 +-
c3b704
 2 files changed, 4 insertions(+), 4 deletions(-)
c3b704
c3b704
diff --git a/Makefile b/Makefile
c3b704
index 91a2991..2a1d179 100644
c3b704
--- a/Makefile
c3b704
+++ b/Makefile
c3b704
@@ -46,9 +46,9 @@ INSTALL		= install
c3b704
 STATIC_LIBS	= libipvs/libipvs.a
c3b704
 
c3b704
 ifeq "${ARCH}" "sparc64"
c3b704
-    CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -m64 -pipe -mcpu=ultrasparc -mcmodel=medlow
c3b704
+    CFLAGS += -Wall -Wunused -Wstrict-prototypes -g -m64 -pipe -mcpu=ultrasparc -mcmodel=medlow
c3b704
 else
c3b704
-    CFLAGS = -Wall -Wunused -Wstrict-prototypes -g
c3b704
+    CFLAGS += -Wall -Wunused -Wstrict-prototypes -g
c3b704
 endif
c3b704
 
c3b704
 
c3b704
@@ -87,7 +87,7 @@ libs:
c3b704
 		make -C libipvs
c3b704
 
c3b704
 ipvsadm:	$(OBJS) $(STATIC_LIBS)
c3b704
-		$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
c3b704
+		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
c3b704
 
c3b704
 install:        all
c3b704
 		if [ ! -d $(SBIN) ]; then $(MKDIR) -p $(SBIN); fi
c3b704
diff --git a/libipvs/Makefile b/libipvs/Makefile
c3b704
index f845c8b..780f3f3 100644
c3b704
--- a/libipvs/Makefile
c3b704
+++ b/libipvs/Makefile
c3b704
@@ -1,7 +1,7 @@
c3b704
 # Makefile for libipvs
c3b704
 
c3b704
 CC		= gcc
c3b704
-CFLAGS		= -Wall -Wunused -Wstrict-prototypes -g -fPIC
c3b704
+CFLAGS		+= -Wall -Wunused -Wstrict-prototypes -g -fPIC
c3b704
 ifneq (0,$(HAVE_NL))
c3b704
 CFLAGS		+= -DLIBIPVS_USE_NL
c3b704
 CFLAGS		+= $(shell \
c3b704
-- 
c3b704
2.14.3
c3b704