risc-v: Disable PIC by default for now
authorWladimir J. van der Laan <laanwj@gmail.com>
Thu, 8 Aug 2019 06:27:30 +0000 (06:27 +0000)
committerXimin Luo <infinity0@debian.org>
Sun, 5 Jan 2020 13:35:46 +0000 (13:35 +0000)
commitb19c4428a204982a295c9e992614cda98fbf38ca
tree07b35a64c8a4bf747b60949b90b023ab1d46be93
parent3049e9f29aa737c6f2825a62792a214bf314523c
risc-v: Disable PIC by default for now

Rust's linker cannot currently handle gcc's fPIC compilation units
for RISC-V targets:

      = note: rust-lld: error:
          .got section detected in the input files. Dynamic relocations are not
          supported. If you are linking to C code compiled using the `gcc` crate
          then modify your build script to compile the C code _without_ the
          -fPIC flag. See the documentation of the `gcc::Config.fpic` method for
          details.

So disable PIC by default for now for `riscv` targets.

Gbp-Pq: Name u-riscv64-cc-430.patch
vendor/cc/src/lib.rs