libffi: Add RISC-V patch.
This commit is contained in:
parent
6850418426
commit
48283de641
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, fetchpatch, dejagnu, doCheck ? false
|
{ stdenv, fetchurl, fetchpatch, dejagnu, doCheck ? false
|
||||||
, buildPlatform, hostPlatform
|
, buildPlatform, hostPlatform, autoreconfHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -20,6 +20,11 @@ stdenv.mkDerivation rec {
|
||||||
url = "https://git.alpinelinux.org/cgit/aports/plain/main/libffi/gnu-linux-define.patch?id=bb024fd8ec6f27a76d88396c9f7c5c4b5800d580";
|
url = "https://git.alpinelinux.org/cgit/aports/plain/main/libffi/gnu-linux-define.patch?id=bb024fd8ec6f27a76d88396c9f7c5c4b5800d580";
|
||||||
sha256 = "11pvy3xkhyvnjfyy293v51f1xjy3x0azrahv1nw9y9mw8bifa2j2";
|
sha256 = "11pvy3xkhyvnjfyy293v51f1xjy3x0azrahv1nw9y9mw8bifa2j2";
|
||||||
})
|
})
|
||||||
|
++ stdenv.lib.optional hostPlatform.isRiscV (fetchpatch {
|
||||||
|
name = "riscv-support.patch";
|
||||||
|
url = https://github.com/sorear/libffi-riscv/commit/e46492e8bb1695a19bc1053ed869e6c2bab02ff2.patch;
|
||||||
|
sha256 = "1vl1vbvdkigs617kckxvj8j4m2cwg62kxm1clav1w5rnw9afxg0y";
|
||||||
|
})
|
||||||
++ stdenv.lib.optionals stdenv.isMips [
|
++ stdenv.lib.optionals stdenv.isMips [
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
name = "0001-mips-Use-compiler-internal-define-for-linux.patch";
|
name = "0001-mips-Use-compiler-internal-define-for-linux.patch";
|
||||||
|
@ -37,6 +42,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = stdenv.lib.optional doCheck dejagnu;
|
buildInputs = stdenv.lib.optional doCheck dejagnu;
|
||||||
|
|
||||||
|
nativeBuildInputs = stdenv.lib.optional hostPlatform.isRiscV autoreconfHook;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-gcc-arch=generic" # no detection of -march= or -mtune=
|
"--with-gcc-arch=generic" # no detection of -march= or -mtune=
|
||||||
"--enable-pax_emutramp"
|
"--enable-pax_emutramp"
|
||||||
|
|
Loading…
Reference in New Issue