Add cross-compilation for Mac and Linux ARM systems by alandavidreyes · Pull Request #13 · lmdbjava/native
This change passes the relevant "-arch" flags into Clang to allow cross compiling of the underlying LMDB library using Clang. This creates binaries for Apple Silicon and ARM-based Linux processors (such as EC2's Graviton) that can be used by the parent library.
changed the title
Add cross-compilation for Mac and Linux arm systems
Add cross-compilation for Mac and Linux ARM systems
Some Linux/BSD systems use aarch64, others use arm64 to refer to the underlying ARM architecture. The previous version of this branch referred to that as aarch64. Given that there is some debate as to what that architecture is called, it seems nicer to use the naming convention that matches that used by Mac systems.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters