d-fix-mips64el-bootstrap
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 16 Dec 2018 22:34:44 +0000 (22:34 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 16 Dec 2018 22:34:44 +0000 (22:34 +0000)
Gbp-Pq: Name d-fix-mips64el-bootstrap.patch

src/bootstrap/bootstrap.py

index c2b3195e03b7f72c329c91ce8c803860b72786e5..d278581d29ad9833f54ba5e42afabd8dfff11fb8 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 = []