feat: made unix-loader more stable on FreeBSD

This commit is contained in:
Andrew Rioux
2025-02-03 02:37:17 -05:00
parent d8a277e769
commit 00331ec550
9 changed files with 159 additions and 59 deletions
+6 -2
View File
@@ -181,6 +181,8 @@ let
--summary all \
--prefix $out \
--release=small \
-Dfork \
-Dos=linux \
-Dbeacon=${sparse-beacon-linux}/bin/sparse-unix-beacon \
-Dtarget=x86_64-linux-musl \
--verbose
@@ -201,6 +203,8 @@ let
--summary all \
--prefix $out \
--release=small \
-Dfork \
-Dos=freebsd \
-Dtarget=x86_64-freebsd \
-Dbeacon=${sparse-beacon-freebsd}/bin/sparse-unix-beacon \
--sysroot ${freebsd-libs} \
@@ -219,7 +223,7 @@ let
CARGO_BUILD_TARGET = "x86_64-unknown-linux-musl";
CARGO_BUILD_RUSTFLAGS = "-Ctarget-feature=+crt-static";
SPARSE_LOADER_LINUX = "${linux-loader}/lib/libunix-loader.so";
SPARSE_LOADER = "${linux-loader}/lib/libunix-loader-linux.so";
});
sparse-installer-freebsd-sysv = craneLib.buildPackage (commonArgs // {
@@ -232,7 +236,7 @@ let
CARGO_BUILD_TARGET = "x86_64-unknown-linux-musl";
CARGO_BUILD_RUSTFLAGS = "-Ctarget-feature=+crt-static";
SPARSE_LOADER_FREEBSD = "${freebsd-loader}/lib/libunix-loader.so";
SPARSE_LOADER = "${freebsd-loader}/lib/libunix-loader-freebsd.so";
});
sparse-installer-freebsd =