libtommath: fix cross build (#370328)

authored by Ben Siraphob and committed by GitHub 7e962376 2d7d0c97

+6 -4
+6 -4
pkgs/by-name/li/libtommath/package.nix
··· 14 sha256 = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; 15 }; 16 17 - nativeBuildInputs = [ libtool ]; 18 - 19 postPatch = '' 20 - substituteInPlace makefile.shared --replace glibtool libtool 21 - substituteInPlace makefile_include.mk --replace "shell arch" "shell uname -m" 22 ''; 23 24 preBuild = '' 25 makeFlagsArray=(PREFIX=$out \ 26 INSTALL_GROUP=$(id -g) \ 27 INSTALL_USER=$(id -u)) 28 '';
··· 14 sha256 = "sha256-KWJy2TQ1mRMI63NgdgDANLVYgHoH6CnnURQuZcz6nQg="; 15 }; 16 17 postPatch = '' 18 + substituteInPlace makefile.shared \ 19 + --replace-fail glibtool libtool \ 20 + --replace-fail libtool "${lib.getExe (libtool.override { stdenv = stdenv; })}" 21 + substituteInPlace makefile_include.mk \ 22 + --replace-fail "gcc" "${stdenv.cc.targetPrefix}cc" 23 ''; 24 25 preBuild = '' 26 makeFlagsArray=(PREFIX=$out \ 27 + CC=${stdenv.cc.targetPrefix}cc \ 28 INSTALL_GROUP=$(id -g) \ 29 INSTALL_USER=$(id -u)) 30 '';