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

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