From f008540c90314ba06efb8494d779e921cd219ec1 Mon Sep 17 00:00:00 2001 From: Dave Rolsky Date: Sun, 5 Jan 2025 16:52:36 -0600 Subject: [PATCH] Add Cross config to work around https://github.com/cross-rs/cross/issues/1345 --- Cross.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Cross.toml diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 0000000..5141a24 --- /dev/null +++ b/Cross.toml @@ -0,0 +1,13 @@ +[build.env] +passthrough = ["GITHUB_TOKEN"] + +# workaround for https://github.com/cross-rs/cross/issues/1345 +[target.x86_64-unknown-netbsd] +pre-build = [ + "mkdir -p /tmp/netbsd", + "curl https://archive.netbsd.org/pub/NetBSD-archive/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", +]