Merge pull request #157793 from danielfullmer/traceroute-cross

traceroute: fix cross compilation
This commit is contained in:
Robert Scott 2022-02-02 21:34:32 +00:00 committed by GitHub
commit 842f318fc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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