Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions library/std/src/sys/pal/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ cfg_select! {
unsafe extern "C" {}
}
target_os = "netbsd" => {
#[link(name = "execinfo")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a base part of the NetBSD distribution?

Copy link
Contributor Author

@he32 he32 Aug 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, execinfo has been part of NetBSD since version 7.0 as far as I can see, and 7.0 was released many moons (or years) ago. We've branched 11.0, and 9.0 is about to be de-supported when 11.0 is released in terms of support for third-party packages via pkgsrc. Trying to build rust for anything older than 9.0 is most probably not going to work (too old in-tree gcc, for starters) -- today doing so for 9.0 is even sometimes a struggle.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed part of NetBSD since 7.0 (2021).

#[link(name = "pthread")]
#[link(name = "rt")]
unsafe extern "C" {}
Expand Down
Loading