Merge pull request #141999 from t184256/tinycc-static-fix
This commit is contained in:
commit
88b8068d66
1 changed files with 4 additions and 1 deletions
|
@ -19,12 +19,15 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--cc=cc"
|
"--cc=$CC"
|
||||||
|
"--ar=$AR"
|
||||||
"--crtprefix=${lib.getLib stdenv.cc.libc}/lib"
|
"--crtprefix=${lib.getLib stdenv.cc.libc}/lib"
|
||||||
"--sysincludepaths=${lib.getDev stdenv.cc.libc}/include:{B}/include"
|
"--sysincludepaths=${lib.getDev stdenv.cc.libc}/include:{B}/include"
|
||||||
"--libpaths=${lib.getLib stdenv.cc.libc}/lib"
|
"--libpaths=${lib.getLib stdenv.cc.libc}/lib"
|
||||||
# build cross compilers
|
# build cross compilers
|
||||||
"--enable-cross"
|
"--enable-cross"
|
||||||
|
] ++ lib.optionals stdenv.hostPlatform.isMusl [
|
||||||
|
"--config-musl"
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
|
Loading…
Reference in a new issue