Blame SOURCES/dbxtool-8-ccldflags.patch

089977
From f229181c015f7353602e6b32e6ed61f9b47480ae Mon Sep 17 00:00:00 2001
089977
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk@redhat.com>
089977
Date: Thu, 12 Apr 2018 12:58:51 +0200
089977
Subject: [PATCH] Respect environment CCLDFLAGS
089977
MIME-Version: 1.0
089977
Content-Type: text/plain; charset=UTF-8
089977
Content-Transfer-Encoding: 8bit
089977
089977
Allow passing custom flags for the linker.
089977
089977
Signed-off-by: Petr Ĺ abata <contyk@redhat.com>
089977
---
089977
 Make.defaults | 2 +-
089977
 src/Makefile  | 2 +-
089977
 2 files changed, 2 insertions(+), 2 deletions(-)
089977
089977
diff --git a/Make.defaults b/Make.defaults
089977
index 9bfa5b2..1030be9 100644
089977
--- a/Make.defaults
089977
+++ b/Make.defaults
089977
@@ -14,7 +14,7 @@ BUILDFLAGS = $(CFLAGS) -fPIC -fshort-wchar -fno-strict-aliasing \
089977
 		--param=ssp-buffer-size=4 -fexceptions
089977
 ASFLAGS    =
089977
 LDFLAGS	   = -nostdlib
089977
-CCLDFLAGS  = -shared
089977
+CCLDFLAGS += -shared
089977
 INSTALL	   = install
089977
 COMPILER  ?=
089977
 
089977
diff --git a/src/Makefile b/src/Makefile
089977
index 1a6277a..669bfab 100644
089977
--- a/src/Makefile
089977
+++ b/src/Makefile
089977
@@ -6,7 +6,7 @@ include $(TOPDIR)/Make.defaults
089977
 PKLIBS = efivar
089977
 LIBS = popt
089977
 LDFLAGS =
089977
-CCLDFLAGS = $(foreach pklib,$(PKLIBS), $(shell pkg-config --libs-only-L $(pklib)))
089977
+CCLDFLAGS += $(foreach pklib,$(PKLIBS), $(shell pkg-config --libs-only-L $(pklib)))
089977
 BUILDFLAGS += $(foreach pklib,$(PKLIBS), $(shell pkg-config --cflags $(pklib)))
089977
 
089977
 TARGETS = dbxtool
089977
-- 
089977
2.17.0
089977