Merge pull request #182430 from NickCao/duktape

duktape: force link shared library against libm

authored by K900 and committed by GitHub 42ca9bef 52dd719b

+5 -8
+5 -8
pkgs/development/interpreters/duktape/default.nix
··· 8 8 sha256 = "sha256-kPjS+otVZ8aJmDDd7ywD88J5YLEayiIvoXqnrGE8KJA="; 9 9 }; 10 10 11 + # https://github.com/svaarala/duktape/issues/2464 12 + LDFLAGS = [ "-lm" ]; 13 + 11 14 nativeBuildInputs = [ validatePkgConfig ]; 12 15 13 - postPatch = '' 14 - substituteInPlace Makefile.sharedlibrary \ 15 - --replace 'gcc' '${stdenv.cc.targetPrefix}cc' \ 16 - --replace 'g++' '${stdenv.cc.targetPrefix}c++' 17 - substituteInPlace Makefile.cmdline \ 18 - --replace 'gcc' '${stdenv.cc.targetPrefix}cc' \ 19 - --replace 'g++' '${stdenv.cc.targetPrefix}c++' 20 - ''; 21 16 buildPhase = '' 22 17 make -f Makefile.sharedlibrary 23 18 make -f Makefile.cmdline 24 19 ''; 20 + 25 21 installPhase = '' 26 22 install -d $out/bin 27 23 install -m755 duk $out/bin/ ··· 30 26 make -f Makefile.sharedlibrary install INSTALL_PREFIX=$out 31 27 substituteAll ${./duktape.pc.in} $out/lib/pkgconfig/duktape.pc 32 28 ''; 29 + 33 30 enableParallelBuilding = true; 34 31 35 32 meta = with lib; {