fix windows-gnu build
All checks were successful
CI / checks (push) Successful in 25s

This commit is contained in:
Robin Appelman 2025-12-01 21:06:37 +01:00
commit 0fae557bf5
2 changed files with 14 additions and 13 deletions

View file

@ -7,6 +7,7 @@
inherit (lib) hasInfix replaceStrings toUpper concatStrings optionalString;
isMusl = hasInfix "-musl";
isGnu = hasInfix "-gnu";
isLinux = hasInfix "-linux-";
crossOpts = callPackage ./crossOpts.nix {};
buildCrossArgs = target: {
@ -42,7 +43,7 @@
"CCX_${targetUnderscore}" = "${targetCc.targetPrefix}ccx";
"HOST_CC" = "${stdenv.cc.targetPrefix}cc";
"CFLAGS_${targetUnderscore}" = cFlags;
postFixup = optionalString (isGnu target) ''
postFixup = optionalString (isGnu target && isLinux target) ''
for bin in $out/bin/*; do
patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $bin
done