From 8f4f6f95646b3cc2d1dc98f656e365c580be6bfb Mon Sep 17 00:00:00 2001 From: Dan Horák Date: Apr 12 2012 11:17:22 +0000 Subject: the used fpu control bits are x86 specific --- diff --git a/openal-soft-1.14-x86.patch b/openal-soft-1.14-x86.patch new file mode 100644 index 0000000..a4aa9b5 --- /dev/null +++ b/openal-soft-1.14-x86.patch @@ -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) diff --git a/openal-soft.spec b/openal-soft.spec index 4e730e9..81b721d 100644 --- a/openal-soft.spec +++ b/openal-soft.spec @@ -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 - 1.14-2 +- the used fpu control bits are x86 specific + * Fri Apr 6 2012 Hans de Goede - 1.14-1 - 1.14-1 - version upgrade (rhbz#808968)