tinycc: fix pkgsStatic.tinycc (musl)

This commit is contained in:
Alexander Sosedkin 2021-10-17 16:13:45 +02:00
parent 6605999f19
commit 9a5345698d

View File

@ -19,12 +19,15 @@ stdenv.mkDerivation rec {
'';
configureFlags = [
"--cc=cc"
"--cc=${stdenv.cc.targetPrefix}cc"
"--ar=${stdenv.cc.targetPrefix}ar"
"--crtprefix=${lib.getLib stdenv.cc.libc}/lib"
"--sysincludepaths=${lib.getDev stdenv.cc.libc}/include:{B}/include"
"--libpaths=${lib.getLib stdenv.cc.libc}/lib"
# build cross compilers
"--enable-cross"
] ++ lib.optionals stdenv.hostPlatform.isMusl [
"--config-musl"
];
preConfigure = ''