Merge pull request #141999 from t184256/tinycc-static-fix

This commit is contained in:
Artturi 2021-10-17 22:54:05 +03:00 committed by GitHub
commit 88b8068d66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = ''