ref: fd562eefa2f7b506d7bedd42335e97256c067d6e
parent: 32ff38bc8a3f1eba8cd27721cf4ce834ad12f9ad
author: Tristan Matthews <[email protected]>
date: Sun Oct 12 11:12:52 EDT 2014
tests: fix linking for --enable-fixed-point on ARM
--- a/Makefile.am
+++ b/Makefile.am
@@ -106,6 +106,11 @@
celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c
celt_tests_test_unit_mathops_LDADD = $(LIBM)
+if CPU_ARM
+if OPUS_ARM_EXTERNAL_ASM
+celt_tests_test_unit_mathops_LDADD += libopus.la
+endif
+endif
celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c
celt_tests_test_unit_mdct_LDADD = $(LIBM)
@@ -112,6 +117,11 @@
celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c
celt_tests_test_unit_rotation_LDADD = $(LIBM)
+if CPU_ARM
+if OPUS_ARM_EXTERNAL_ASM
+celt_tests_test_unit_rotation_LDADD += libopus.la
+endif
+endif
celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c
celt_tests_test_unit_types_LDADD = $(LIBM)
--- a/celt/tests/test_unit_mathops.c
+++ b/celt/tests/test_unit_mathops.c
@@ -56,6 +56,8 @@
#include "x86/celt_lpc_sse.c"
#endif
#include "x86/x86_celt_map.c"
+#elif defined(OPUS_ARM_ASM) && defined(FIXED_POINT)
+#include "arm/arm_celt_map.c"
#endif
#ifdef FIXED_POINT
--- a/celt/tests/test_unit_rotation.c
+++ b/celt/tests/test_unit_rotation.c
@@ -54,6 +54,8 @@
#include "x86/celt_lpc_sse.c"
#endif
#include "x86/x86_celt_map.c"
+#elif defined(OPUS_ARM_ASM) && defined(FIXED_POINT)
+#include "arm/arm_celt_map.c"
#endif
#define MAX_SIZE 100