diff --git a/SOURCES/libiscsi-libtool-ppc64le.patch b/SOURCES/libiscsi-libtool-ppc64le.patch new file mode 100644 index 00000000..abb20f5f --- /dev/null +++ b/SOURCES/libiscsi-libtool-ppc64le.patch @@ -0,0 +1,16 @@ +--- m4/libtool.m4 2019-09-08 12:18:28.480000000 +0200 ++++ m4/libtool.m4 2019-09-08 12:29:30.270000000 +0200 +@@ -1345,9 +1345,12 @@ + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; +- ppc*-*linux*|powerpc*-*linux*) ++ ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; ++ ppc64le-*linux*|powerpc64le-*linux*) ++ LD="${LD-ld} -m elf64ppc -EL" ++ ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; diff --git a/SPECS/libiscsi.spec b/SPECS/libiscsi.spec index 28e0d5c3..80b33879 100644 --- a/SPECS/libiscsi.spec +++ b/SPECS/libiscsi.spec @@ -11,12 +11,14 @@ Source: https://github.com/sahlberg/%{name}/archive/%{version}.tar.gz Patch0001: 0001-Fix-compiler-warning-error-under-gcc7.patch Patch0002: 0002-Fix-another-compiler-warning.patch # Fix 32bit build -Patch0003: 0003-Fix-32bit-build.patch +#Patch0003: 0003-Fix-32bit-build.patch # Fix build with latest rdma-core # Submitted upstream: https://github.com/sahlberg/libiscsi/pull/265 Patch0004: 0004-iser-Use-local-container_of-definition.patch Patch0005: 0005-fix-ipv6.patch Patch0006: 0006-fix-coverity-report.patch +# because we need to apply after autogen +Source1: libiscsi-libtool-ppc64le.patch BuildRequires: autoconf BuildRequires: automake @@ -44,6 +46,7 @@ a network. %build sh autogen.sh +patch -p0 -s < %{SOURCE1} %configure --libdir=%{libiscsi_libdir} --disable-werror make %{?_smp_mflags}