Skip to content

Commit

Permalink
Add workaround for cross-rs/cross#1345
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Nov 4, 2023
1 parent a036479 commit 082f343
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,14 @@ typed-path = "0.6.0"
[dev-dependencies]
tempfile = "3.8.0"
test-case = "3.2.1"

# workaround for https://github.com/cross-rs/cross/issues/1345
[package.metadata.cross.target.x86_64-unknown-netbsd]
pre-build = [
"mkdir -p /tmp/netbsd",
"curl https://cdn.netbsd.org/pub/NetBSD/NetBSD-9.2/amd64/binary/sets/base.tar.xz -O",
"tar -C /tmp/netbsd -xJf base.tar.xz",
"cp /tmp/netbsd/usr/lib/libexecinfo.so /usr/local/x86_64-unknown-netbsd/lib",
"rm base.tar.xz",
"rm -rf /tmp/netbsd",
]

0 comments on commit 082f343

Please sign in to comment.