d-fix-mips64el-bootstrap
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Fri, 2 Nov 2018 08:42:36 +0000 (08:42 +0000)
committerXimin Luo <infinity0@debian.org>
Fri, 2 Nov 2018 08:42:36 +0000 (08:42 +0000)
Gbp-Pq: Name d-fix-mips64el-bootstrap.patch

src/bootstrap/bootstrap.py

index 1b3ece76532f17fe819d05422b95987c3b54347d..90ff8119215a9f108491b5f287a7355ef132dba0 100644 (file)
@@ -623,6 +623,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 = []