aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nicolas Robin <nrosfs@gmail.com>2020-05-15 19:53:55 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-07-16 18:10:54 +0200
commitadd03d2fcf3050e8034e4e2c7ba5a13207a9899c (patch)
treec0bf14c7d8c70e9fc5ad1b63392a2d8b975435a5
parentcfb5c02b79c564fe013557fd099e8c45da212b10 (diff)
downloadbuildroot-add03d2fcf3050e8034e4e2c7ba5a13207a9899c.tar.gz
buildroot-add03d2fcf3050e8034e4e2c7ba5a13207a9899c.tar.bz2
package/sdl2: enable SSE only if it's supported by the target
Signed-off-by: Nicolas Robin <nrosfs@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit a14a9629837a4de32a7a06a2f7b0e88958948ce5) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/sdl2/sdl2.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/sdl2/sdl2.mk b/package/sdl2/sdl2.mk
index e39c51d4d9..80238bd062 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