Skip to content

Link urcl to rt on non-Apple Unix#540

Open
Tobias-Fischer wants to merge 1 commit into
UniversalRobots:masterfrom
Tobias-Fischer:codex/robostack-rolling-urcl-link-rt-linux
Open

Link urcl to rt on non-Apple Unix#540
Tobias-Fischer wants to merge 1 commit into
UniversalRobots:masterfrom
Tobias-Fischer:codex/robostack-rolling-urcl-link-rt-linux

Conversation

@Tobias-Fischer

@Tobias-Fischer Tobias-Fischer commented Jul 19, 2026

Copy link
Copy Markdown

This PR is part of an effort to contribute RoboStack downstream patches back upstream.

Origin: RoboStack patch/ros-rolling-ur-client-library.osx.patch, authored by Daisuke Nishimatsu.

Best-guess rationale: Linux builds may need librt for realtime-related symbols, while macOS does not provide a separate rt library; gating the link on non-Apple Unix keeps both platforms working.


Note

Low Risk
Single conditional CMake link line for platform-specific library resolution; no runtime logic or security-sensitive changes.

Overview
Links urcl against librt on Linux and other non-Apple Unix targets so builds resolve realtime-related symbols (e.g. from clock_gettime in queue synchronization code) that may live in librt on some Linux setups.

The link is gated with UNIX AND NOT APPLE so macOS builds are unchanged, since macOS does not ship a separate rt library.

Reviewed by Cursor Bugbot for commit 09c4113. Bugbot is set up for automated code reviews on this repo. Configure here.

This upstreams RoboStack downstream patch `patch/ros-rolling-ur-client-library.osx.patch`.

Best-guess rationale: Linux builds may need librt for realtime-related symbols, while macOS does not provide a separate rt library; gating the link on non-Apple Unix keeps both platforms working.

Signed-off-by: Tobias Fischer <info@tobiasfischer.info>
@Tobias-Fischer

Copy link
Copy Markdown
Author

FYI @wep21 and @traversaro, this upstream PR comes from the RoboStack patch upstreaming tracker: RoboStack/robostack.github.io#16.

Origin patch: RoboStack patch/ros-rolling-ur-client-library.osx.patch, authored by Daisuke Nishimatsu.

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

Successfully merging this pull request may close these issues.

1 participant