diff options
| author | Ximin Luo <infinity0@debian.org> | 2023-05-18 22:21:59 -0600 |
|---|---|---|
| committer | liushuyu <liushuyu011@gmail.com> | 2023-05-29 10:57:03 -0600 |
| commit | b65c2afdfd9aaee977302516c9ef177861abfe74 (patch) | |
| tree | 181e5c651a1efd1a20c03f30b0c85e5335000ec3 /src | |
| parent | 498553fc04f6a3fdc53412320f4e913bc53bc267 (diff) | |
| download | rust-b65c2afdfd9aaee977302516c9ef177861abfe74.tar.gz rust-b65c2afdfd9aaee977302516c9ef177861abfe74.zip | |
Fix linkage for large binaries on mips64 platforms ...
... by enabling xgot feature Co-Authored-By: Zixing Liu <zixing.liu@canonical.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/bootstrap.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 58d1926ad96..de484f3a571 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -877,6 +877,12 @@ class RustBuild(object): # preserve existing RUSTFLAGS env.setdefault("RUSTFLAGS", "") + # we need to explicitly add +xgot here so that we can successfully bootstrap + # a usable stage1 compiler + # FIXME: remove this if condition on the next bootstrap bump + # cfg(bootstrap) + if self.build_triple().startswith('mips'): + env["RUSTFLAGS"] += " -Ctarget-feature=+xgot" target_features = [] if self.get_toml("crt-static", build_section) == "true": target_features += ["+crt-static"] |
