forked from pool/userspace-rcu
8eaf64d27f
- Fix build on ppc64le platform - added patches: * userspace-rcu-ppc64le.patch OBS-URL: https://build.opensuse.org/request/show/209303 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/userspace-rcu?expand=0&rev=13
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
Index: userspace-rcu-0.8.1/urcu/arch/ppc.h
|
|
===================================================================
|
|
--- userspace-rcu-0.8.1.orig/urcu/arch/ppc.h
|
|
+++ userspace-rcu-0.8.1/urcu/arch/ppc.h
|
|
@@ -80,7 +80,7 @@ extern "C" {
|
|
|
|
typedef unsigned long long cycles_t;
|
|
|
|
-#ifdef __powerpc64__
|
|
+#if defined(__powerpc64__) || defined(__powerpc64le__)
|
|
static inline cycles_t caa_get_cycles(void)
|
|
{
|
|
return (cycles_t) mftb();
|
|
Index: userspace-rcu-0.8.1/configure
|
|
===================================================================
|
|
--- userspace-rcu-0.8.1.orig/configure
|
|
+++ userspace-rcu-0.8.1/configure
|
|
@@ -7148,6 +7148,9 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
|
|
ppc*-*linux*|powerpc*-*linux*)
|
|
LD="${LD-ld} -m elf64ppc"
|
|
;;
|
|
+ ppc*le-*linux*|powerpc*le-*linux*)
|
|
+ LD="${LD-ld} -m elf64ppc"
|
|
+ ;;
|
|
s390*-*linux*|s390*-*tpf*)
|
|
LD="${LD-ld} -m elf64_s390"
|
|
;;
|
|
@@ -12665,6 +12668,8 @@ case $host_cpu in #(
|
|
ARCHTYPE="ppc" ;; #(
|
|
powerpc64) :
|
|
ARCHTYPE="ppc" ;; #(
|
|
+ powerpc64le) :
|
|
+ ARCHTYPE="ppc" ;; #(
|
|
ppc) :
|
|
ARCHTYPE="ppc" ;; #(
|
|
s390) :
|