mirror of
https://codeberg.org/icewind/mill-scale.git
synced 2026-06-03 09:54:19 +02:00
This commit is contained in:
parent
2d9b2da2c9
commit
0fae557bf5
2 changed files with 14 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue