ld-is-cc-hook: init

This hook sets LD to CC, for use with software that works as if LD=$CC when LD
is unset, and does not work when LD=ld.
This commit is contained in:
Orivej Desh 2017-12-19 01:45:42 +00:00
parent 170a964815
commit e2c8655405
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,5 @@
ld-is-cc-hook() {
LD=$CC
}
preConfigureHooks+=(ld-is-cc-hook)

View File

@ -287,6 +287,9 @@ with pkgs;
inherit url; inherit url;
}; };
ld-is-cc-hook = makeSetupHook { name = "ld-is-cc-hook"; }
../build-support/setup-hooks/ld-is-cc-hook.sh;
libredirect = callPackage ../build-support/libredirect { }; libredirect = callPackage ../build-support/libredirect { };
madonctl = callPackage ../applications/misc/madonctl { }; madonctl = callPackage ../applications/misc/madonctl { };