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

What is the proper way to build boost on macOS universally? #936

Open
Mardalemer opened this issue Aug 12, 2024 · 0 comments
Open

What is the proper way to build boost on macOS universally? #936

Mardalemer opened this issue Aug 12, 2024 · 0 comments

Comments

@Mardalemer
Copy link

I'm trying to build several boost libraries like universal binaries for arm64 and x86_64 architectures. Firstly I've built it by providing for b2 two archs at once like this:

./b2 -arch x86_64 -arch arm64

but it doesn't work, because of boost-context cross-compilation. There is some assembly code and I feel that it needs some clarifying params, like: <architecture>, <address-model>, <binary-format> and <abi>. So build fails.

I try to build two slim binaries and with lipo create universal one.

Building x86_64 slim library on Macbook with Apple Silicone fails for boost-locale and boost-stacktrace libraries. As I understand about boost-locale, it can not find libiconv while building slim library.

So the question is, what's the proper way to build universal binaries for macOS using b2?

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

No branches or pull requests

1 participant