the used fpu control bits are x86 specific
This commit is contained in:
parent
2d82f0abab
commit
8f4f6f9564
21
openal-soft-1.14-x86.patch
Normal file
21
openal-soft-1.14-x86.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff -up openal-soft-1.14/OpenAL32/Include/alu.h.non-x86 openal-soft-1.14/OpenAL32/Include/alu.h
|
||||
--- openal-soft-1.14/OpenAL32/Include/alu.h.x86 2012-04-12 13:03:01.000000000 +0200
|
||||
+++ openal-soft-1.14/OpenAL32/Include/alu.h 2012-04-12 13:07:20.000000000 +0200
|
||||
@@ -227,7 +227,7 @@ static __inline ALfloat cubic(ALfloat va
|
||||
|
||||
static __inline int SetMixerFPUMode(void)
|
||||
{
|
||||
-#if defined(_FPU_GETCW) && defined(_FPU_SETCW)
|
||||
+#if defined(_FPU_GETCW) && defined(_FPU_SETCW) && (defined(__i386__) || defined(__x86_64__))
|
||||
fpu_control_t fpuState, newState;
|
||||
_FPU_GETCW(fpuState);
|
||||
newState = fpuState&~(_FPU_EXTENDED|_FPU_DOUBLE|_FPU_SINGLE |
|
||||
@@ -249,7 +249,7 @@ static __inline int SetMixerFPUMode(void
|
||||
|
||||
static __inline void RestoreFPUMode(int state)
|
||||
{
|
||||
-#if defined(_FPU_GETCW) && defined(_FPU_SETCW)
|
||||
+#if defined(_FPU_GETCW) && defined(_FPU_SETCW) && (defined(__i386__) || defined(__x86_64__))
|
||||
fpu_control_t fpuState = state;
|
||||
_FPU_SETCW(fpuState);
|
||||
#elif defined(HAVE__CONTROLFP)
|
@ -1,12 +1,13 @@
|
||||
Name: openal-soft
|
||||
Version: 1.14
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Open Audio Library
|
||||
|
||||
Group: System Environment/Libraries
|
||||
License: LGPLv2+
|
||||
URL: http://kcat.strangesoft.net/openal.html
|
||||
Source0: http://kcat.strangesoft.net/openal-releases/openal-soft-%{version}.tar.bz2
|
||||
Patch0: %{name}-1.14-x86.patch
|
||||
|
||||
BuildRequires: alsa-lib-devel
|
||||
BuildRequires: pulseaudio-libs-devel
|
||||
@ -39,6 +40,7 @@ developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .x86
|
||||
|
||||
%build
|
||||
%cmake .
|
||||
@ -69,6 +71,9 @@ install -Dpm644 alsoftrc.sample %{buildroot}%{_sysconfdir}/openal/alsoft.conf
|
||||
%{_libdir}/pkgconfig/openal.pc
|
||||
|
||||
%changelog
|
||||
* Thu Apr 12 2012 Dan Horák <dan[at]danny.cz> - 1.14-2
|
||||
- the used fpu control bits are x86 specific
|
||||
|
||||
* Fri Apr 6 2012 Hans de Goede <hdegoede@redhat.com> - 1.14-1
|
||||
- 1.14-1
|
||||
- version upgrade (rhbz#808968)
|
||||
|
Loading…
Reference in New Issue
Block a user