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.
commite2c8655405307bac689eaaf864b3504ac91cbc99
authorOrivej Desh <orivej@gmx.fr>
dateTue 19 Dec 2017, 01:45 (9 years ago)
parent170a964
pkgs/build-support/setup-hooks/ld-is-cc-hook.shnew file+5
@@ -0,0 +1,5 @@
1+ld-is-cc-hook() {
2+ LD=$CC
3+}
4+
5+preConfigureHooks+=(ld-is-cc-hook)
pkgs/top-level/all-packages.nix+3
@@ -287,6 +287,9 @@ with pkgs;
287287 inherit url;
288288 };
289289
290+ ld-is-cc-hook = makeSetupHook { name = "ld-is-cc-hook"; }
291+ ../build-support/setup-hooks/ld-is-cc-hook.sh;
292+
290293 libredirect = callPackage ../build-support/libredirect { };
291294
292295 madonctl = callPackage ../applications/misc/madonctl { };