libiscsi make it compile on ppc64le
Signed-off-by: basebuilder_pel7ppc64lebuilder0 <basebuilder@powerel.org>master
parent
9ce9dd6b3b
commit
1881fe9f3b
|
@ -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"
|
||||
;;
|
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue