blob: 836ed604877c4944b9b56762bc493c8b57ef337d [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From 29571f71692e28ce9a17d1450097a98492f3b465 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 2 Feb 2018 22:54:04 -0800
4Subject: [PATCH 2/2] libopeniscsiusr: Add CFLAGS to linker cmdline
5
6This will ensure that -fPIC is passed to linker as
7well
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 libopeniscsiusr/Makefile | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/libopeniscsiusr/Makefile b/libopeniscsiusr/Makefile
15index 8b9b523..4f1d0d6 100644
16--- a/libopeniscsiusr/Makefile
17+++ b/libopeniscsiusr/Makefile
18@@ -49,7 +49,7 @@ LIBADD =
19 all: $(LIBS) $(LIBS_MAJOR) $(TESTS) doc
20
21 $(LIBS): $(OBJS)
22- $(CC) $(LDFLAGS) -shared -Wl,-soname=$@ -o $@ $(OBJS) $(LIBADD)
23+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname=$@ -o $@ $(OBJS) $(LIBADD)
24 ln -sf $@ $(DEVLIB)
25
26 $(LIBS_MAJOR): $(LIBS)
27--
282.16.1
29