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