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

librem: fix cross compilation

authored by Artturi and committed by GitHub e66c61a1 8b2521bd

+1
+1
pkgs/development/libraries/librem/default.nix
··· 18 makeFlags = [ 19 "LIBRE_MK=${libre}/share/re/re.mk" 20 "PREFIX=$(out)" 21 ] 22 ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${lib.getDev stdenv.cc.cc}" 23 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
··· 18 makeFlags = [ 19 "LIBRE_MK=${libre}/share/re/re.mk" 20 "PREFIX=$(out)" 21 + "AR=${stdenv.cc.targetPrefix}ar" 22 ] 23 ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${lib.getDev stdenv.cc.cc}" 24 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"