d-fix-mips64el-bootstrap
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 5 Sep 2019 07:06:23 +0000 (08:06 +0100)
committerXimin Luo <infinity0@debian.org>
Thu, 5 Sep 2019 07:06:23 +0000 (08:06 +0100)
Gbp-Pq: Name d-fix-mips64el-bootstrap.patch

src/bootstrap/bootstrap.py

index f9feb98f556d0ab14785d60769a0059020a119ff..610b9c2dae6ca45c6e42b2a0ad7b7f711f91be08 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 = []