Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross compiling from an macOS ARM64 machine to x86_64 fails #3715

Closed
lemonmojo opened this issue Dec 19, 2023 · 0 comments · Fixed by #3716
Closed

Cross compiling from an macOS ARM64 machine to x86_64 fails #3715

lemonmojo opened this issue Dec 19, 2023 · 0 comments · Fixed by #3716

Comments

@lemonmojo
Copy link

I just tried updating from 1.8.0 to 2.4.0 and noticed that the makefile is set up in a way that makes it impossible to cross-compile from an ARM64 machine (M2 Ultra in this case) to Intel x86_64.

Make invocation is like this:
make OS=darwin ARCH=x86_64

But -arch x86_64 is not passed to CFLAGS and LDFLAGS so the build fails.
I assume that the reverse (cross-compiling from an Intel machine to ARM64) will work but haven't tried it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant