1
Fork 0

Enable Static Builds for FreeBSD

Enable crt-static for FreeBSD to enable statically compiled binaries.
This commit is contained in:
Nathan Reller 2024-01-11 15:26:16 +00:00
parent d73bd3fb3b
commit adce3fd99b
2 changed files with 8 additions and 1 deletions

View file

@ -6,6 +6,7 @@ pub fn opts() -> TargetOptions {
dynamic_linking: true,
families: cvs!["unix"],
has_rpath: true,
crt_static_respected: true,
position_independent_executables: true,
relro_level: RelroLevel::Full,
abi_return_struct_as_int: true,