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

src/bootstrap/bootstrap.py

index 2007e2e498776c141236e4e6752ed493c2d6d473..90f4edce885542d0bd7b2a2ce87e190f9cec6cfb 100644 (file)
@@ -608,6 +608,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 = []