commit 65d3bbe50c0d1f813cbcffba659fb7a6c0c884d3
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Sat Mar 25 13:36:45 2017 +0000
Add build fix for ppc64le
dhewm3-ppc64le-buildfix.patch | 16 ++++++++++++++++
dhewm3.spec | 6 +++---
2 files changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/dhewm3-ppc64le-buildfix.patch b/dhewm3-ppc64le-buildfix.patch
new file mode 100644
index 0000000..44cbdca
--- /dev/null
+++ b/dhewm3-ppc64le-buildfix.patch
@@ -0,0 +1,16 @@
+--- a/neo/idlib/math/Simd_AltiVec.h
++++ b/neo/idlib/math/Simd_AltiVec.h
+@@ -95,9 +95,9 @@
+
+ // This turns on support for PPC intrinsics in the SIMD_AltiVec.cpp file. Right now
it's only used for frsqrte. GCC
+ // supports these intrinsics but XLC does not.
+-#if defined(__GNUC__) && defined(__ALTIVEC__)
+- #define PPC_INTRINSICS
+-#endif
++//#if defined(__GNUC__) && defined(__ALTIVEC__)
++// #define PPC_INTRINSICS
++//#endif
+
+ // This assumes that the idDrawVert array that is used in DeriveUnsmoothedTangents is
aligned. If its not aligned,
+ // then we don't get any speedup
+
diff --git a/dhewm3.spec b/dhewm3.spec
index 9de888e..8c24c51 100644
--- a/dhewm3.spec
+++ b/dhewm3.spec
@@ -15,8 +15,7 @@ Source1: %{name}-README.txt
Patch0: %{name}-no-cdkey.patch
Patch1: %{name}-def-fixedtic.patch
Patch2: %{name}-carmack.patch
-
-ExcludeArch: ppc64 ppc64le
+Patch3: %{name}-ppc64le-buildfix.patch
# Generic provider for Doom 3 engine based games
Provides: doom3-engine = 1.3.1.1304
@@ -44,6 +43,7 @@ game-play.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
cp %{SOURCE1} ./README.txt
iconv -f iso8859-1 -t utf-8 COPYING.txt > COPYING.txt.conv && mv -f
COPYING.txt.conv COPYING.txt
@@ -78,7 +78,7 @@ fi
%changelog
* Sat Mar 25 2017 Leigh Scott <leigh123linux(a)googlemail.com> - 1.4.1rc1-3.89f227b
-- Add ExcludeArch for ppc due to missing ppc_intrinsics.h
+- Add build fix for ppc64le
* Sun Mar 19 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> -
1.4.1rc1-2.89f227b
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild