d-fix-mips64el-bootstrap
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 30 May 2019 04:52:37 +0000 (05:52 +0100)
committerXimin Luo <infinity0@debian.org>
Thu, 30 May 2019 04:52:37 +0000 (05:52 +0100)
Bug: https://github.com/rust-lang/rust/issues/52108

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

src/bootstrap/bootstrap.py

index 372949c9caf94704407aed6eb326465bc7838cfb..1a3750272114f118f61e420d504c71dc4c7bf0f6 100644 (file)
@@ -617,6 +617,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 = []