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

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