diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-02-16 18:48:46 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2021-02-20 01:01:46 +0700 |
commit | 223f25cf4a2ca9e2b35801eb0c43540151df89b9 (patch) | |
tree | a43b8bfb6b924ef794f2cba0867df97f2ce1b70c /pkgs/games/nethack | |
parent | ad4db3f4d8ae54482c63c31c14921cb73953548d (diff) |
treewide: add targetPrefix to hardcoded references to CC=cc
Diffstat (limited to 'pkgs/games/nethack')
-rw-r--r-- | pkgs/games/nethack/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/games/nethack/default.nix b/pkgs/games/nethack/default.nix index d6ba771de7ed1..f9939f063c809 100644 --- a/pkgs/games/nethack/default.nix +++ b/pkgs/games/nethack/default.nix @@ -60,7 +60,7 @@ in stdenv.mkDerivation rec { -e 's,^WINTTYLIB=.*,WINTTYLIB=-lncurses,' \ -i sys/unix/hints/linux sed \ - -e 's,^CC=.*$,CC=cc,' \ + -e 's,^CC=.*$,CC=${stdenv.cc.targetPrefix}cc,' \ -e 's,^HACKDIR=.*$,HACKDIR=\$(PREFIX)/games/lib/\$(GAME)dir,' \ -e 's,^SHELLDIR=.*$,SHELLDIR=\$(PREFIX)/games,' \ -e 's,^CFLAGS=-g,CFLAGS=,' \ |