From cecacd61dbc3d704fc6142d07e848250dc14274d Mon Sep 17 00:00:00 2001 From: Daniel Fullmer Date: Tue, 1 Feb 2022 18:55:48 -0800 Subject: [PATCH] traceroute: fix cross compilation Adding env=yes causes the Makefile to use our externally provided environment variables for things like CC, LD, etc. --- pkgs/tools/networking/traceroute/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/networking/traceroute/default.nix b/pkgs/tools/networking/traceroute/default.nix index c941aad258cc..eeb96936aeab 100644 --- a/pkgs/tools/networking/traceroute/default.nix +++ b/pkgs/tools/networking/traceroute/default.nix @@ -9,7 +9,7 @@ stdenv.mkDerivation rec { sha256 = "3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6"; }; - makeFlags = [ "prefix=$(out)" "LDFLAGS=-lm" ]; + makeFlags = [ "prefix=$(out)" "LDFLAGS=-lm" "env=yes" ]; preConfigure = '' sed -i 's@LIBS := \(.*\) -lm \(.*\)@LIBS := \1 \2@' Make.rules