d-fix-mips64el-bootstrap
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Fri, 10 Apr 2020 10:33:25 +0000 (11:33 +0100)
committerXimin Luo <infinity0@debian.org>
Fri, 10 Apr 2020 10:33:25 +0000 (11:33 +0100)
Bug: https://github.com/rust-lang/rust/issues/52108

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

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

src/bootstrap/bootstrap.py

index babbfaa5666aa418a889d3bf830542a27bdb0506..08818cd8213132ab364c61f3c99cb6a6ac50fa6b 100644 (file)
@@ -681,6 +681,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 = []