docs: added reasoning for hacky solutions

This commit is contained in:
Andrew Rioux 2025-01-20 20:43:21 -05:00
parent af2e832762
commit b2cec71667
Signed by: andrew.rioux
GPG Key ID: 9B8BAC47C17ABB94

View File

@ -30,6 +30,10 @@ let
};
freebsdArgs = commonArgs // {
# Sigh...
# For some reason, crane and cargo don't run the build script for FreeBSD
# It runs it with the dev shell for all 3 targets, and runs it in the
# nix packages for Linux and Windows... just not FreeBSD
CARGO_BUILD_RUSTFLAGS =
"-Ctarget-feature=+crt-static -Clink-args=--target=x86_64-unknown-freebsd -Clink-args=--sysroot=${freebsd-libs} -Clink-args=-L${freebsd-libs}/lib -Clink-args=-L${freebsd-libs}/usr/lib -Clink-args=-L${libpcap-freebsd}/lib";