]> git.pld-linux.org Git - packages/open-iscsi.git/blob - 0013-libiscsi-fix-build-to-use-libopeniscsiusr.patch
9b3c34b2140fcc29ae544589d3500208729a0697
[packages/open-iscsi.git] / 0013-libiscsi-fix-build-to-use-libopeniscsiusr.patch
1 From a86a677762cf5fd45a43029a4fd3dd83d1a87a98 Mon Sep 17 00:00:00 2001
2 From: rpm-build <rpm-build>
3 Date: Thu, 24 May 2018 15:17:05 -0700
4 Subject: [PATCH] libiscsi fix build to use libopeniscsiusr
5
6 ---
7  libiscsi/Makefile | 6 ++++--
8  1 file changed, 4 insertions(+), 2 deletions(-)
9
10 diff --git a/libiscsi/Makefile b/libiscsi/Makefile
11 index 53f9746..f2cf248 100644
12 --- a/libiscsi/Makefile
13 +++ b/libiscsi/Makefile
14 @@ -8,7 +8,9 @@ OSNAME=$(shell uname -s)
15  OPTFLAGS ?= -O2 -g
16  WARNFLAGS ?= -Wall -Wstrict-prototypes
17  CFLAGS = $(OPTFLAGS) $(WARNFLAGS) -I../include -I../usr \
18 -               -D$(OSNAME) -fPIC -D_GNU_SOURCE -fvisibility=hidden
19 +               -D$(OSNAME) -fPIC -D_GNU_SOURCE -fvisibility=hidden \
20 +               -I../libopeniscsiusr
21 +LDFLAGS = -L../libopeniscsiusr -lopeniscsiusr
22  LIB = libiscsi.so.0
23  TESTS = tests/test_discovery_sendtargets tests/test_discovery_firmware
24  TESTS += tests/test_login tests/test_logout tests/test_params
25 @@ -23,7 +25,7 @@ FW_PARAM_SRCS = fw_entry.o prom_lex.o prom_parse.tab.o fwparam_ppc.o fwparam_sys
26  # sources shared with the userspace utils, note we build these separately
27  # to get PIC versions.
28  COMMON_OBJS = $(patsubst %.o, common-objs/%.o, $(COMMON_SRCS))
29 -USR_OBJS = $(patsubst %.o, usr-objs/%.o, $(ISCSI_LIB_SRCS) strings.o)
30 +USR_OBJS = $(patsubst %.o, usr-objs/%.o, $(ISCSI_LIB_SRCS) local_strings.o)
31  FW_OBJS = $(patsubst %.o, fw-objs/%.o, $(FW_PARAM_SRCS))
32  
33  # Flags for the tests
34 -- 
35 2.26.2
36
This page took 0.046771 seconds and 2 git commands to generate.