From 52bcc51bbd6e19c588ca0f6aa0fc4c7a43c8df6e Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sat, 27 Dec 2014 19:16:07 +0100 Subject: [PATCH] package/freerdp: do not use SSE2 extensions when not available Do not let FreeRDP decide whether it can use SE2 opcodes, it may well fail to do so, because the heuristic is not working for cross-compilation. Also, we do have a Kconfig option stating whether we have SSE2 or not, so reuse that. Similar to the recent ARM+Neon fix. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Signed-off-by: Thomas Petazzoni --- package/freerdp/freerdp.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/freerdp/freerdp.mk b/package/freerdp/freerdp.mk index c9396b5ec6..a703500b6f 100644 --- a/package/freerdp/freerdp.mk +++ b/package/freerdp/freerdp.mk @@ -69,4 +69,10 @@ else FREERDP_CONF_OPTS += -DWITH_NEON=OFF endif +ifeq ($(BR2_X86_CPU_HAS_SSE2),y) +FREERDP_CONF_OPTS += -DWITH_SSE2=ON +else +FREERDP_CONF_OPTS += -DWITH_SSE2=OFF +endif + $(eval $(cmake-package)) -- 2.30.2