freeimage: fix build with glibc 2.27

+6
+6
pkgs/development/libraries/freeimage/default.nix
··· 19 19 url = patchURL + "/Fix-CVE-2016-5684.patch"; 20 20 sha256 = "14ffgqbnwg28r6sjvm3z89zbnnm9ghbc81hdhrzxlyk3vwvd6cw3"; 21 21 }) 22 + (fetchurl { 23 + url = https://raw.githubusercontent.com/buildroot/buildroot/2018.05/package/libfreeimage/0005-Manage-powf64-with-glibc.patch; 24 + sha256 = "1lis479ad5cfkhqm044nk4x97wfwm3hry3bvij1w5xkndnlfppc2"; 25 + }) 22 26 ]; 23 27 24 28 buildInputs = [ unzip ] ++ stdenv.lib.optional stdenv.isDarwin darwin.cctools; ··· 56 60 postInstall = stdenv.lib.optionalString (!stdenv.isDarwin) "make -f Makefile.fip install"; 57 61 58 62 NIX_CFLAGS_COMPILE = "-Wno-narrowing"; 63 + 64 + enableParallelBuilding = true; 59 65 60 66 meta = { 61 67 description = "Open Source library for accessing popular graphics image file formats";