docs: added reasoning for hacky solutions
This commit is contained in:
parent
af2e832762
commit
b2cec71667
@ -30,6 +30,10 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
freebsdArgs = commonArgs // {
|
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 =
|
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";
|
"-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";
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user