summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-07-24 10:12:17 +0200
committerTim-Philipp Müller <tim@centricular.com>2019-08-11 00:19:46 +0100
commit1bfe5fd618d016ec53872d5a0591d78fd06eac58 (patch)
tree5d00d0f02b7e03edc3f3682b94fc44c669f9e230
parent737c87a38aac49c776b3b1f667f1b99b212faa3c (diff)
downloadgstreamer-plugins-base-1bfe5fd618d016ec53872d5a0591d78fd06eac58.tar.gz
Add used attribute in order to make NEON detection working with -flto.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 717581f6a..2fa7ef041 100644
--- a/configure.ac
+++ b/configure.ac
@@ -225,7 +225,7 @@ AC_MSG_CHECKING(for ARM NEON support in current arch/CFLAGS)
AC_LINK_IFELSE([
AC_LANG_PROGRAM([[
#include <arm_neon.h>
- int32x4_t testfunc(int16_t *a, int16_t *b) {
+ int32x4_t __attribute__((used)) testfunc(int16_t *a, int16_t *b) {
asm volatile ("vmull.s16 q0, d0, d0" : : : "q0");
return vmull_s16(vld1_s16(a), vld1_s16(b));
}