-
Notifications
You must be signed in to change notification settings - Fork 199
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
crosscompiling shared library on macos #68
Comments
|
Yes, but without the Also with several other projects I can use configure --host to create a shared library. The strange is if I use the same architecture for the host as my cpu and the shared library cannot be created anyway. |
Try to find the libtool command with its arguments which fails. It is likely that one argument is invalid, and that cause the fail. Then figure out something to change (or remove) that argument. |
need to also pass the correct target to the compiler since Apple clang is a "native" cross compiler:
|
I try with this configure:
This is the ouput:
Then when i make:
|
this most likely means that it is trying to link with an x86_64 library instead of the apple silicon one you should provide in your crosslinking worktree. either way, I don't think this is a PCRE specific problem and the following seems to work fine for me with the latest release in an intel macOS 11 system:
|
Thanks! |
I try to crosscompile the shared library on macOS. My system uses an Intel processor and I want to compile for arm.
When I pass the
--host
argument toconfigure
the shared library creation will be disabled:Also if i try to configure an host with the same CPU architecture (like
x86_64-apple-macos10.15
) the shared library cannot be created.If I remove the
--host
argument the shared library is build (for current arch):The text was updated successfully, but these errors were encountered: