summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-support/tgt/files/usr-Makefile-apply-LDFLAGS-to-all-executables.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openstack/recipes-support/tgt/files/usr-Makefile-apply-LDFLAGS-to-all-executables.patch')
-rw-r--r--meta-openstack/recipes-support/tgt/files/usr-Makefile-apply-LDFLAGS-to-all-executables.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-openstack/recipes-support/tgt/files/usr-Makefile-apply-LDFLAGS-to-all-executables.patch b/meta-openstack/recipes-support/tgt/files/usr-Makefile-apply-LDFLAGS-to-all-executables.patch
new file mode 100644
index 0000000..d480ef7
--- /dev/null
+++ b/meta-openstack/recipes-support/tgt/files/usr-Makefile-apply-LDFLAGS-to-all-executables.patch
@@ -0,0 +1,35 @@
1From a815ac8ee16b344d9e24b445957f32bf2aafa532 Mon Sep 17 00:00:00 2001
2From: Mark Asselstine <mark.asselstine@windriver.com>
3Date: Thu, 5 Jan 2017 11:07:51 -0500
4Subject: [PATCH] usr/Makefile: apply LDFLAGS to all executables
5
6Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
7---
8 usr/Makefile | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11diff --git a/usr/Makefile b/usr/Makefile
12index cc8df11..c55fd68 100644
13--- a/usr/Makefile
14+++ b/usr/Makefile
15@@ -78,7 +78,7 @@ TGTADM_OBJS = tgtadm.o concat_buf.o
16 TGTADM_DEP = $(TGTADM_OBJS:.o=.d)
17
18 tgtadm: $(TGTADM_OBJS)
19- $(CC) $^ -o $@
20+ $(CC) $^ -o $@ $(LDFLAGS)
21
22 -include $(TGTADM_DEP)
23
24@@ -86,7 +86,7 @@ TGTIMG_OBJS = tgtimg.o libssc.o libcrc32c.o
25 TGTIMG_DEP = $(TGTIMG_OBJS:.o=.d)
26
27 tgtimg: $(TGTIMG_OBJS)
28- $(CC) $^ -o $@
29+ $(CC) $^ -o $@ $(LDFLAGS)
30
31 -include $(TGTIMG_DEP)
32
33--
342.7.4
35