[vlc-commits] contrib: soxr: fix SIMD detection when cross compiling
Thomas Guillem
git at videolan.org
Fri Mar 23 16:32:44 CET 2018
vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar 23 15:40:43 2018 +0100| [fcd7c682894723f381fe3e83cb60ba38883b1167] | committer: Thomas Guillem
contrib: soxr: fix SIMD detection when cross compiling
(cherry picked from commit 2c3a8c9bc9e8b176ecfc8f4ac3f08fe2ddf205ce)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=fcd7c682894723f381fe3e83cb60ba38883b1167
---
contrib/src/soxr/rules.mak | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/contrib/src/soxr/rules.mak b/contrib/src/soxr/rules.mak
index 3aa2c40d3e..4994e1ed32 100644
--- a/contrib/src/soxr/rules.mak
+++ b/contrib/src/soxr/rules.mak
@@ -21,9 +21,15 @@ soxr: soxr-$(SOXR_VERSION)-Source.tar.xz .sum-soxr
$(call pkg_static,"src/soxr.pc.in")
$(MOVE)
+# Force CMAKE_CROSSCOMPILING to True
+ifdef HAVE_CROSS_COMPILE
+SOXR_EXTRA_CONF=-DCMAKE_SYSTEM_NAME=Generic
+endif
+
.soxr: soxr toolchain.cmake
rm -f $</CMakeCache.txt
cd $< && $(HOSTVARS_PIC) $(CMAKE) \
+ $(SOXR_EXTRA_CONF) \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF \
More information about the vlc-commits
mailing list