d-fix-mips64el-bootstrap
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Mon, 23 Dec 2019 03:21:02 +0000 (03:21 +0000)
committerXimin Luo <infinity0@debian.org>
Mon, 23 Dec 2019 03:21:02 +0000 (03:21 +0000)
Gbp-Pq: Name d-fix-mips64el-bootstrap.patch

src/bootstrap/bootstrap.py

index c6cb0a782659a9a54e58f9cd11ba648b858bcb5f..e4ae84deb7fc74a0fa1cc4b0c327b1c50607d78f 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 = []