diff options
| author | Nathan Reller <Nathan@GingerCybersecurity.com> | 2024-01-11 15:26:16 +0000 |
|---|---|---|
| committer | Nathan Reller <Nathan@GingerCybersecurity.com> | 2024-01-11 15:26:16 +0000 |
| commit | adce3fd99ba2ad3f3b03136473c29256513213fb (patch) | |
| tree | 0cac9ec486549388f38dbe7ac552e3a971f2fbbf /compiler/rustc_target/src | |
| parent | d73bd3fb3ba312f3e6b5af4d56d1161d37b71620 (diff) | |
| download | rust-adce3fd99ba2ad3f3b03136473c29256513213fb.tar.gz rust-adce3fd99ba2ad3f3b03136473c29256513213fb.zip | |
Enable Static Builds for FreeBSD
Enable crt-static for FreeBSD to enable statically compiled binaries.
Diffstat (limited to 'compiler/rustc_target/src')
| -rw-r--r-- | compiler/rustc_target/src/spec/base/freebsd.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/base/freebsd.rs b/compiler/rustc_target/src/spec/base/freebsd.rs index 8c141aaaec3..80b3da8a752 100644 --- a/compiler/rustc_target/src/spec/base/freebsd.rs +++ b/compiler/rustc_target/src/spec/base/freebsd.rs @@ -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, |
