Open wolfv opened 1 week ago
Seems like a reasonable change to me.
Is anyone linking against this library as a "traditional dynamic library"?
I'm not sure. Let's find out!
CI (repos file build: --packages-above-and-dependencies rclpy
test: --packages-above rclpy
)
I guess that means .. it works?! :)
If I understand the CI correctly, then something went wrong in a package on Windows? Do you think that's related to this change?
If I understand the CI correctly, then something went wrong in a package on Windows? Do you think that's related to this change?
Unclear. It may be, because we don't see that same failure in the nightly builds: https://ci.ros2.org/view/nightly/job/nightly_win_rel/3083/
Damnation.
I would be happy to make this conditional (keep the current one on Windows). I don't really think that it should change anything though.
When the module is compiled with
MODULE
(the default), the proper linker flags are added on macOS (specifically-undefined dynamic_lookup
). Otherwise,rclpy
segfaults when linked on conda.Is the
SHARED
really necessary? Thepybind11
documentation says:Is anyone linking against this library as a "traditional dynamic library"?