mirror of
https://codeberg.org/icewind/mill-scale.git
synced 2026-06-03 09:54:19 +02:00
set interpreter for gnu cross targets
All checks were successful
CI / checks (push) Successful in 21s
All checks were successful
CI / checks (push) Successful in 21s
This commit is contained in:
parent
92d786ae0e
commit
2d9b2da2c9
1 changed files with 7 additions and 1 deletions
|
|
@ -4,8 +4,9 @@
|
|||
stdenv,
|
||||
lib,
|
||||
}: let
|
||||
inherit (lib) hasInfix replaceStrings toUpper concatStrings;
|
||||
inherit (lib) hasInfix replaceStrings toUpper concatStrings optionalString;
|
||||
isMusl = hasInfix "-musl";
|
||||
isGnu = hasInfix "-gnu";
|
||||
crossOpts = callPackage ./crossOpts.nix {};
|
||||
|
||||
buildCrossArgs = target: {
|
||||
|
|
@ -41,6 +42,11 @@
|
|||
"CCX_${targetUnderscore}" = "${targetCc.targetPrefix}ccx";
|
||||
"HOST_CC" = "${stdenv.cc.targetPrefix}cc";
|
||||
"CFLAGS_${targetUnderscore}" = cFlags;
|
||||
postFixup = optionalString (isGnu target) ''
|
||||
for bin in $out/bin/*; do
|
||||
patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 $bin
|
||||
done
|
||||
'';
|
||||
}
|
||||
// rest
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue