diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-12-27 19:16:07 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-12-27 19:59:45 +0100 |
commit | 52bcc51bbd6e19c588ca0f6aa0fc4c7a43c8df6e (patch) | |
tree | 567b499b8b26f4d30cd7e82440b4a4b33ec0b99d | |
parent | 530693787b3fcea9603775982d36cfc85667885c (diff) |
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" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/freerdp/freerdp.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/freerdp/freerdp.mk b/package/freerdp/freerdp.mk index c9396b5ec..a703500b6 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)) |