[openal-soft] 01/01: armhf build fix

Bret Curtis psi29a at gmail.com
Wed Sep 14 18:07:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

psi29a-guest pushed a commit to branch master
in repository openal-soft.

commit 4a469cc9088fe65b7fd719c098e8b9a18983173b
Author: Bret Curtis <psi29a at gmail.com>
Date:   Wed Sep 14 20:07:46 2016 +0200

    armhf build fix
---
 debian/changelog                |  7 +++++++
 debian/patches/1_fpu_neon.patch | 31 +++++++++++++++++++++++++++++++
 debian/patches/series           |  1 +
 3 files changed, 39 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index ea07bf1..32ff625 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+openal-soft (1:1.17.2-3) unstable; urgency=medium
+
+  [ Bret Curtis ]
+  * fix arm build with broken fpu_neon extension
+
+ -- Bret Curtis <psi29a at gmail.com>  Wed, 14 Sep 2016 08:59:01 +0200
+
 openal-soft (1:1.17.2-2) unstable; urgency=medium
 
   [ Bret Curtis ]
diff --git a/debian/patches/1_fpu_neon.patch b/debian/patches/1_fpu_neon.patch
new file mode 100644
index 0000000..376a4cf
--- /dev/null
+++ b/debian/patches/1_fpu_neon.patch
@@ -0,0 +1,31 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5784d35..7ed24e9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -360,6 +360,7 @@ SET(SSE_SWITCH "")
+ SET(SSE2_SWITCH "")
+ SET(SSE3_SWITCH "")
+ SET(SSE4_1_SWITCH "")
++SET(FPU_NEON_SWITCH "")
+ IF(NOT MSVC)
+     CHECK_C_COMPILER_FLAG(-msse HAVE_MSSE_SWITCH)
+     IF(HAVE_MSSE_SWITCH)
+@@ -377,6 +378,10 @@ IF(NOT MSVC)
+     IF(HAVE_MSSE4_1_SWITCH)
+         SET(SSE4_1_SWITCH "-msse4.1")
+     ENDIF()
++    CHECK_C_COMPILER_FLAG(-mfpu=neon HAVE_MFPU_NEON_SWITCH)
++    IF(HAVE_MFPU_NEON_SWITCH)
++        SET(FPU_NEON_SWITCH "-mfpu=neon")
++    ENDIF()
+ ENDIF()
+ 
+ CHECK_C_SOURCE_COMPILES("int foo(const char *str, ...) __attribute__((format(printf, 1, 2)));
+@@ -760,6 +765,7 @@ IF(HAVE_ARM_NEON_H)
+         SET(HAVE_NEON 1)
+         SET(ALC_OBJS  ${ALC_OBJS} Alc/mixer_neon.c)
+         SET(CPU_EXTS "${CPU_EXTS}, Neon")
++        SET_SOURCE_FILES_PROPERTIES(Alc/mixer_neon.c PROPERTIES COMPILE_FLAGS -mfpu=neon)
+     ENDIF()
+ ENDIF()
+ IF(ALSOFT_REQUIRE_NEON AND NOT HAVE_NEON)
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..b5917f3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+1_fpu_neon.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/openal-soft.git



More information about the Pkg-games-commits mailing list