Fix compile of crc32-pclmul_asm on macOS High Sierra#8
Conversation
* .type and .size are ELF/COFF specific so drop them * .globl + .hidden equivalent for macOS is .private_extern * symbol name are not mangled on macOS, so we need to prefix _
|
Can you check https://github.com/cloudflare/zlib/tree/vlad/aarch64 first? |
|
I tried compiling If I cherry-pick c129738 from this PR into |
|
Ooops, looks like I forgot to commit the fix, only changed the commit message :) |
|
@vkrasnov Have you found the missing commit for mac compatibility? |
|
This is still a problem. |
|
@kornelski I solved this by applying @RJVB's Mac and compatibility fixes #6. While RJVB's code works, it does make some assumptions, e.g. that |
Reference IETF docs
.typeand.sizeare ELF/COFF specific so drop them.globl+.hiddenequivalent for macOS is.private_extern_prefixThis is similar to #6, but only contains the fixes that are actually required to compile on macOS 10.13.
I have run
make testandmake test64and all tests are passing fine.