From fcefdc9a595c52ade2be15e0f3a2f301fee3599c Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Thu, 19 Dec 2013 21:43:25 +0200 Subject: mesa: Fix build to properly check for supported compiler flags Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72708 Reviewed-by: Matt Turner Signed-off-by: Lauri Kasanen --- src/mesa/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mesa/Makefile.am') diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am index a60600e0364..884383652d3 100644 --- a/src/mesa/Makefile.am +++ b/src/mesa/Makefile.am @@ -103,7 +103,11 @@ noinst_PROGRAMS = gen_matypes gen_matypes_SOURCES = x86/gen_matypes.c BUILT_SOURCES += matypes.h -ARCH_LIBS = libmesa_sse41.la +ARCH_LIBS = + +if SSE41_SUPPORTED +ARCH_LIBS += libmesa_sse41.la +endif if HAVE_X86_64_ASM MESA_ASM_FILES_FOR_ARCH += $(X86_64_FILES) -- cgit v1.2.3