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