Menu

#290 ARM build broken for e.g. Androids

libpng_code
open
nobody
ARM (1)
5
2020-05-20
2020-05-20
Heiko Lewin
No

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

Discussion


Log in to post a comment.

Monday.com Logo