[vlc-commits] contrib: soxr: fix SIMD detection when cross compiling
Thomas Guillem
git at videolan.org
Fri Mar 23 16:29:49 CET 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Mar 23 15:40:43 2018 +0100| [2c3a8c9bc9e8b176ecfc8f4ac3f08fe2ddf205ce] | committer: Thomas Guillem
contrib: soxr: fix SIMD detection when cross compiling
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c3a8c9bc9e8b176ecfc8f4ac3f08fe2ddf205ce
---
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 86a1e55ac3..6642925add 100644
--- a/contrib/src/soxr/rules.mak
+++ b/contrib/src/soxr/rules.mak
@@ -22,9 +22,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