summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-10-14 10:43:54 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-10-14 10:43:54 +0200
commit30d7ed2077d70deebdb56c5c34cee2989e8a1a74 (patch)
tree48983f1fcad9bace60378c0b8bebd1aa9c9b12c8
parentae84f99cbc239cf95f145e7433fbdbcd57c35013 (diff)
downloadbuildroot-30d7ed2077d70deebdb56c5c34cee2989e8a1a74.tar.gz
buildroot-30d7ed2077d70deebdb56c5c34cee2989e8a1a74.zip
liquid-dsp: pass the supported x86 CPU extensions
By default, the liquid-dsp configure script looks at the current CPU to find which x86 CPU extensions are supported. Those checks use AC_TRY_RUN(), which cannot work in a cross-compilation environment, and would anyway be wrong. To fix this, we explicitly pass the appropriate ac_cv_have_<foo>_ext autoconf cache variables. Fixes: http://autobuild.buildroot.org/results/eb0/eb002463ed82de461fae11211415c07883a95386/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/liquid-dsp/liquid-dsp.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/liquid-dsp/liquid-dsp.mk b/package/liquid-dsp/liquid-dsp.mk
index 98b23a5233..8bb8d54f4c 100644
--- a/package/liquid-dsp/liquid-dsp.mk
+++ b/package/liquid-dsp/liquid-dsp.mk
@@ -11,6 +11,16 @@ LIQUID_DSP_LICENSE_FILES = LICENSE
LIQUID_DSP_INSTALL_STAGING = YES
LIQUID_DSP_AUTORECONF = YES
+LIQUID_DSP_CONF_ENV = \
+ ax_cv_have_mmx_ext=$(if $(BR2_X86_CPU_HAS_MMX),yes,no) \
+ ax_cv_have_sse_ext=$(if $(BR2_X86_CPU_HAS_SSE),yes,no) \
+ ax_cv_have_sse2_ext=$(if $(BR2_X86_CPU_HAS_SSE2),yes,no) \
+ ax_cv_have_sse3_ext=$(if $(BR2_X86_CPU_HAS_SSE3),yes,no) \
+ ax_cv_have_ssse3_ext=$(if $(BR2_X86_CPU_HAS_SSSE3),yes,no) \
+ ax_cv_have_sse41_ext=$(if $(BR2_X86_CPU_HAS_SSE4),yes,no) \
+ ax_cv_have_sse42_ext=$(if $(BR2_X86_CPU_HAS_SSE42),yes,no) \
+ ax_cv_have_avx_ext=$(if $(BR2_X86_CPU_HAS_AVX),yes,no)
+
LIQUID_DSP_CFLAGS = $(TARGET_CFLAGS)
LIQUID_DSP_LDFLAGS = $(TARGET_LDFLAGS)
OpenPOWER on IntegriCloud