From: Yann E. MORIN Date: Sat, 27 Dec 2014 18:16:07 +0000 (+0100) Subject: package/freerdp: do not use SSE2 extensions when not available X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52bcc51bbd6e19c588ca0f6aa0fc4c7a43c8df6e;p=buildroot.git 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 --- 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))