d-fix-mips64el-bootstrap
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sat, 13 Jul 2019 17:30:35 +0000 (18:30 +0100)
committerXimin Luo <infinity0@debian.org>
Sat, 13 Jul 2019 17:30:35 +0000 (18:30 +0100)
Gbp-Pq: Name d-fix-mips64el-bootstrap.patch

src/bootstrap/bootstrap.py

index 8389d44f6ad33755b955b253ee819f3367386c69..83519cb9d1038be50ef2edc43b0f81b685ea912a 100644 (file)
@@ -621,6 +621,8 @@ class RustBuild(object):
             (os.pathsep + env["LIBRARY_PATH"]) \
             if "LIBRARY_PATH" in env else ""
         env["RUSTFLAGS"] = "-Cdebuginfo=2 "
+        if self.build_triple().startswith('mips'):
+            env["RUSTFLAGS"] += "-Cllvm-args=-mxgot "
 
         build_section = "target.{}".format(self.build_triple())
         target_features = []