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 sha256 = "sha256-kPjS+otVZ8aJmDDd7ywD88J5YLEayiIvoXqnrGE8KJA="; 9 }; 10 11 nativeBuildInputs = [ validatePkgConfig ]; 12 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 buildPhase = '' 22 make -f Makefile.sharedlibrary 23 make -f Makefile.cmdline 24 ''; 25 installPhase = '' 26 install -d $out/bin 27 install -m755 duk $out/bin/ ··· 30 make -f Makefile.sharedlibrary install INSTALL_PREFIX=$out 31 substituteAll ${./duktape.pc.in} $out/lib/pkgconfig/duktape.pc 32 ''; 33 enableParallelBuilding = true; 34 35 meta = with lib; {
··· 8 sha256 = "sha256-kPjS+otVZ8aJmDDd7ywD88J5YLEayiIvoXqnrGE8KJA="; 9 }; 10 11 + # https://github.com/svaarala/duktape/issues/2464 12 + LDFLAGS = [ "-lm" ]; 13 + 14 nativeBuildInputs = [ validatePkgConfig ]; 15 16 buildPhase = '' 17 make -f Makefile.sharedlibrary 18 make -f Makefile.cmdline 19 ''; 20 + 21 installPhase = '' 22 install -d $out/bin 23 install -m755 duk $out/bin/ ··· 26 make -f Makefile.sharedlibrary install INSTALL_PREFIX=$out 27 substituteAll ${./duktape.pc.in} $out/lib/pkgconfig/duktape.pc 28 ''; 29 + 30 enableParallelBuilding = true; 31 32 meta = with lib; {