Blame SOURCES/0013-libiscsi-fix-build-to-use-libopeniscsiusr.patch

1a76fd
From a86a677762cf5fd45a43029a4fd3dd83d1a87a98 Mon Sep 17 00:00:00 2001
1a76fd
From: rpm-build <rpm-build>
1a76fd
Date: Thu, 24 May 2018 15:17:05 -0700
1a76fd
Subject: [PATCH] libiscsi fix build to use libopeniscsiusr
1a76fd
1a76fd
---
1a76fd
 libiscsi/Makefile | 6 ++++--
1a76fd
 1 file changed, 4 insertions(+), 2 deletions(-)
1a76fd
1a76fd
diff --git a/libiscsi/Makefile b/libiscsi/Makefile
1a76fd
index 53f9746..f2cf248 100644
1a76fd
--- a/libiscsi/Makefile
1a76fd
+++ b/libiscsi/Makefile
1a76fd
@@ -8,7 +8,9 @@ OSNAME=$(shell uname -s)
1a76fd
 OPTFLAGS ?= -O2 -g
1a76fd
 WARNFLAGS ?= -Wall -Wstrict-prototypes
1a76fd
 CFLAGS = $(OPTFLAGS) $(WARNFLAGS) -I../include -I../usr \
1a76fd
-		-D$(OSNAME) -fPIC -D_GNU_SOURCE -fvisibility=hidden
1a76fd
+		-D$(OSNAME) -fPIC -D_GNU_SOURCE -fvisibility=hidden \
1a76fd
+		-I../libopeniscsiusr
1a76fd
+LDFLAGS = -L../libopeniscsiusr -lopeniscsiusr
1a76fd
 LIB = libiscsi.so.0
1a76fd
 TESTS = tests/test_discovery_sendtargets tests/test_discovery_firmware
1a76fd
 TESTS += tests/test_login tests/test_logout tests/test_params
1a76fd
@@ -23,7 +25,7 @@ FW_PARAM_SRCS = fw_entry.o prom_lex.o prom_parse.tab.o fwparam_ppc.o fwparam_sys
1a76fd
 # sources shared with the userspace utils, note we build these separately
1a76fd
 # to get PIC versions.
1a76fd
 COMMON_OBJS = $(patsubst %.o, common-objs/%.o, $(COMMON_SRCS))
1a76fd
-USR_OBJS = $(patsubst %.o, usr-objs/%.o, $(ISCSI_LIB_SRCS) strings.o)
1a76fd
+USR_OBJS = $(patsubst %.o, usr-objs/%.o, $(ISCSI_LIB_SRCS) local_strings.o)
1a76fd
 FW_OBJS = $(patsubst %.o, fw-objs/%.o, $(FW_PARAM_SRCS))
1a76fd
 
1a76fd
 # Flags for the tests
1a76fd
-- 
1a76fd
2.26.2
1a76fd