d-fix-mips64el-bootstrap
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)
Gbp-Pq: Name d-fix-mips64el-bootstrap.patch

src/bootstrap/bootstrap.py

index a2b73f904c1049c361ae4d13449a88d1c1501bf0..202d217e83e611b472e18d3cda6e9e70c44327f0 100644 (file)
@@ -632,6 +632,8 @@ class RustBuild(object):
         # preserve existing RUSTFLAGS
         env.setdefault("RUSTFLAGS", "")
         env["RUSTFLAGS"] += " -Cdebuginfo=2"
+        if self.build_triple().startswith('mips'):
+            env["RUSTFLAGS"] += " -Cllvm-args=-mxgot"
 
         build_section = "target.{}".format(self.build_triple())
         target_features = []