-
Notifications
You must be signed in to change notification settings - Fork 194
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
Build issues on MacOS while building tools with static flag #162
Comments
Hm, I'm not sure what the best approach is here. To clarify: are you cross-compiling on an M1 or cross-compiling to the M1? Can you add the appropriate logic to disable -static with that configuration? |
Unfortunately, I'm not building it for my own. The issue came up while I was trying to allow cross compilation in the foonathan memory conan package: conan-io/conan-center-index#16997 |
Actually, I think that logic is no longer necessary. As of #129, the node sizes are determined using compiler error messages; the tool doesn't matter anymore. So you can just remove the entire `if(). Can you do a PR? |
Hey,
when building for MacOS M1 I get the following error:
ld: library not found for -lcrt0.o
while clang is trying to build the tools. I figured out that this might caused by thestatic
flag here:which seems to be not supported: https://stackoverflow.com/questions/3801011/ld-library-not-found-for-lcrt0-o-on-osx-10-6-with-gcc-clang-static-flag
The text was updated successfully, but these errors were encountered: