d-fix-mips64el-bootstrap
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 23 Sep 2018 17:16:53 +0000 (18:16 +0100)
committerXimin Luo <infinity0@debian.org>
Sun, 23 Sep 2018 17:16:53 +0000 (18:16 +0100)
Gbp-Pq: Name d-fix-mips64el-bootstrap.patch

src/bootstrap/bootstrap.py

index 345107f72cd4eef2cb57045f2f41bbf21170a671..7fe34a3d441f06311898b8544a2c508848dc1b02 100644 (file)
@@ -620,6 +620,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 = []