rust 1.84 + cross compiling to aarch64-apple-darwin results in curl linker error #309
-
Hello, I't trying to cross-compile my cli tool from linux to apple darwin and got into issue, it is the same when I try to build in docker or on my local machine. OS: linux (dockerhub rust:latest) I run
Any suggestions how to resolve it? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You need to compile a static curl for aarch64 macOS before hand and specific it in |
Beta Was this translation helpful? Give feedback.
-
Hey, thanks for the suggestion. I now get linking error:
Any thoughts on what could be wrong or missing? |
Beta Was this translation helpful? Give feedback.
I managed to compile it. Thanks a lot! Briefly:
export XCODEDIR=~/path_to/macos_sdk/Xcode.app
)mac_sdk/MacOSX12.3.sdk
.cargo/config.toml