-
Notifications
You must be signed in to change notification settings - Fork 37
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
Rationale for not propagating -shared #24
Comments
We explicitly set it in our linker wrapper:
|
Ah ok, I think this is a specific issue to the mpi4py package then as it doesn't use the LD wrapper passed by vpip but instead the mpicc compiler wrapper alongside the ld flags passed and so the missing -shared from flags is an issue for that package. |
The principle here is that we always build shared modules for Python extensions. So, it makes sense that we ignore whatever Bazel's C++ rules think the linking configuration is. I'm confused why this would break |
I haven't checked exactly this but I suspect because the LD flags are being overridden in the environment then its not automatically adding Surely though it doesn't hurt if |
It seems like the problem with |
dbx_build_tools/build_tools/py/py.bzl
Line 136 in 878fa99
Was wondering why
'-shared
is removed from the list of flags that is propagated to vpip? I've found that for at least one package with a binary component that-shared
needs to be propagated for proper compilation.The text was updated successfully, but these errors were encountered: