d-fix-mips64el-bootstrap
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Tue, 1 Dec 2020 19:57:48 +0000 (19:57 +0000)
committerXimin Luo <infinity0@debian.org>
Tue, 1 Dec 2020 19:57:48 +0000 (19:57 +0000)
Bug: https://github.com/rust-lang/rust/issues/52108

===================================================================

Gbp-Pq: Name d-fix-mips64el-bootstrap.patch

src/bootstrap/bootstrap.py

index c2637590253617c2d2e5cbaed748e0774a34ffeb..714595c9437876e395bb03528395698731fdb407 100644 (file)
@@ -793,6 +793,8 @@ class RustBuild(object):
         # preserve existing RUSTFLAGS
         env.setdefault("RUSTFLAGS", "")
         env["RUSTFLAGS"] += " -Cdebuginfo=2"
+        if self.build_triple().startswith('mips'):
+            env["RUSTFLAGS"] += " -Ctarget-feature=+xgot"
 
         build_section = "target.{}".format(self.build_triple())
         target_features = []