d-fix-mips64el-bootstrap
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sat, 18 May 2019 19:18:25 +0000 (20:18 +0100)
committerXimin Luo <infinity0@debian.org>
Sat, 18 May 2019 19:18:25 +0000 (20:18 +0100)
Bug: https://github.com/rust-lang/rust/issues/52108

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

src/bootstrap/bootstrap.py

index 002cd4daf332b680592d826d0edbfc0dcfd09aac..74976cb3c855fb1d38a7f81f2657c2e7bbd97750 100644 (file)
@@ -614,6 +614,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 = []