63 lines
1.5 KiB
Diff
63 lines
1.5 KiB
Diff
|
From 0f1020bc83b3d047a6226326d79798e1c7f4e0ee Mon Sep 17 00:00:00 2001
|
||
|
From: Jiri Olsa <jolsa@kernel.org>
|
||
|
Date: Thu, 4 Oct 2018 14:25:16 +0200
|
||
|
Subject: [PATCH 2/2] make: Add support to add flags to LDFLAGS via
|
||
|
EXTRA_LDFLAGS
|
||
|
|
||
|
We need to pass extra flags to LDFLAGS, so adding
|
||
|
the EXTRA_LDFLAGS to allow that. It mirrors the
|
||
|
EXTRA_CFLAGS variable usage.
|
||
|
|
||
|
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
|
||
|
---
|
||
|
lib/Makefile | 3 +++
|
||
|
pqos/Makefile | 3 +++
|
||
|
rdtset/Makefile | 3 +++
|
||
|
3 files changed, 9 insertions(+)
|
||
|
|
||
|
diff --git a/lib/Makefile b/lib/Makefile
|
||
|
index a2dba5939931..8dfa308cc45e 100644
|
||
|
--- a/lib/Makefile
|
||
|
+++ b/lib/Makefile
|
||
|
@@ -48,6 +48,9 @@ CFLAGS = -pthread -I./ -D_GNU_SOURCE \
|
||
|
ifneq ($(EXTRA_CFLAGS),)
|
||
|
CFLAGS += $(EXTRA_CFLAGS)
|
||
|
endif
|
||
|
+ifneq ($(EXTRA_LDFLAGS),)
|
||
|
+LDFLAGS += $(EXTRA_LDFLAGS)
|
||
|
+endif
|
||
|
|
||
|
DOXY_DIRS = doc_api doc_lib
|
||
|
|
||
|
diff --git a/pqos/Makefile b/pqos/Makefile
|
||
|
index dc5cc1a1744e..0f1a26f5a0f7 100644
|
||
|
--- a/pqos/Makefile
|
||
|
+++ b/pqos/Makefile
|
||
|
@@ -47,6 +47,9 @@ CFLAGS = -I$(LIBDIR) \
|
||
|
ifneq ($(EXTRA_CFLAGS),)
|
||
|
CFLAGS += $(EXTRA_CFLAGS)
|
||
|
endif
|
||
|
+ifneq ($(EXTRA_LDFLAGS),)
|
||
|
+LDFLAGS += $(EXTRA_LDFLAGS)
|
||
|
+endif
|
||
|
|
||
|
# ICC and GCC options
|
||
|
ifeq ($(CC),icc)
|
||
|
diff --git a/rdtset/Makefile b/rdtset/Makefile
|
||
|
index d1f283093c4f..2e9939af8b20 100644
|
||
|
--- a/rdtset/Makefile
|
||
|
+++ b/rdtset/Makefile
|
||
|
@@ -48,6 +48,9 @@ CFLAGS = -I$(LIBDIR) \
|
||
|
ifneq ($(EXTRA_CFLAGS),)
|
||
|
CFLAGS += $(EXTRA_CFLAGS)
|
||
|
endif
|
||
|
+ifneq ($(EXTRA_LDFLAGS),)
|
||
|
+LDFLAGS += $(EXTRA_LDFLAGS)
|
||
|
+endif
|
||
|
|
||
|
# ICC and GCC options
|
||
|
ifeq ($(CC),icc)
|
||
|
--
|
||
|
2.17.1
|
||
|
|