Merge pull request #224935 from amjoseph-nixpkgs/pr/librem/cross

librem: fix cross compilation
This commit is contained in:
Artturi 2023-04-07 06:47:50 +03:00 committed by GitHub
commit e66c61a110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
makeFlags = [
"LIBRE_MK=${libre}/share/re/re.mk"
"PREFIX=$(out)"
"AR=${stdenv.cc.targetPrefix}ar"
]
++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${lib.getDev stdenv.cc.cc}"
++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"