ARM builds seem broken for non-Apple devices. When cross-compiling for Android
arm/filter_neon.S:34 fails due to invalid .section-syntax.
.section __LLVM,__asm
The second argument is not accepted.
When compiling for Apple iPhone this works, though.
Testing for __APPLE__ in the condition worked for me but I do not really know what I am doing there. Is there a general use for the __LLVM-section? Are my compilers just outdated?
--- a/arm/filter_neon.S
+++ b/arm/filter_neon.S
@@ -21,7 +21,11 @@
#endif
#ifdef __clang__
-.section __LLVM,__asm
+# ifdef __APPLE__
+ .section __LLVM,__asm
+# else
+ .section __LLVM
+# endif
#endif
#ifdef PNG_READ_SUPPORTED