From: Nicolas Robin Date: Fri, 15 May 2020 17:53:55 +0000 (+0200) Subject: package/sdl2: enable SSE only if it's supported by the target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a14a9629837a4de32a7a06a2f7b0e88958948ce5;p=buildroot.git package/sdl2: enable SSE only if it's supported by the target Signed-off-by: Nicolas Robin Signed-off-by: Thomas Petazzoni --- diff --git a/package/sdl2/sdl2.mk b/package/sdl2/sdl2.mk index 501bb4699d..4a287b66a3 100644 --- a/package/sdl2/sdl2.mk +++ b/package/sdl2/sdl2.mk @@ -30,6 +30,12 @@ else SDL2_CONF_OPTS += --disable-libudev endif +ifeq ($(BR2_X86_CPU_HAS_SSE),y) +SDL2_CONF_OPTS += --enable-sse +else +SDL2_CONF_OPTS += --disable-sse +endif + ifeq ($(BR2_PACKAGE_SDL2_DIRECTFB),y) SDL2_DEPENDENCIES += directfb SDL2_CONF_OPTS += --enable-video-directfb