diff options
Diffstat (limited to 'meta-networking/recipes-daemons/iscsi-initiator-utils/files/0002-libopeniscsiusr-Add-CFLAGS-to-linker-cmdline.patch')
-rw-r--r-- | meta-networking/recipes-daemons/iscsi-initiator-utils/files/0002-libopeniscsiusr-Add-CFLAGS-to-linker-cmdline.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/iscsi-initiator-utils/files/0002-libopeniscsiusr-Add-CFLAGS-to-linker-cmdline.patch b/meta-networking/recipes-daemons/iscsi-initiator-utils/files/0002-libopeniscsiusr-Add-CFLAGS-to-linker-cmdline.patch new file mode 100644 index 000000000..836ed6048 --- /dev/null +++ b/meta-networking/recipes-daemons/iscsi-initiator-utils/files/0002-libopeniscsiusr-Add-CFLAGS-to-linker-cmdline.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 29571f71692e28ce9a17d1450097a98492f3b465 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 2 Feb 2018 22:54:04 -0800 | ||
4 | Subject: [PATCH 2/2] libopeniscsiusr: Add CFLAGS to linker cmdline | ||
5 | |||
6 | This will ensure that -fPIC is passed to linker as | ||
7 | well | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | libopeniscsiusr/Makefile | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/libopeniscsiusr/Makefile b/libopeniscsiusr/Makefile | ||
15 | index 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 | -- | ||
28 | 2.16.1 | ||
29 | |||