lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

freeglut: pull upstream fix for -fno-common compiler

Fixes build failure against upstream gcc (defaults -fno-common).

+10 -1
+10 -1
pkgs/development/libraries/freeglut/default.nix
··· 1 - { lib, stdenv, fetchurl, libXi, libXrandr, libXxf86vm, libGL, libGLU, xlibsWrapper, cmake }: 1 + { lib, stdenv, fetchurl, fetchpatch, libXi, libXrandr, libXxf86vm, libGL, libGLU, xlibsWrapper, cmake }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "freeglut"; ··· 8 8 url = "mirror://sourceforge/freeglut/freeglut-${version}.tar.gz"; 9 9 sha256 = "0s6sk49q8ijgbsrrryb7dzqx2fa744jhx1wck5cz5jia2010w06l"; 10 10 }; 11 + 12 + patches = [ 13 + (fetchpatch { 14 + # upstream build fix against -fno-common compilers like >=gcc-10 15 + url = "https://github.com/dcnieho/FreeGLUT/commit/b9998bbc1e1c329f6bf69c24606a2be7a4973b8c.patch"; 16 + sha256 = "0j43vrnm22mz3r3c43szgcnil19cx9vcydzky9gwzqlyacr51swd"; 17 + stripLen = 2; 18 + }) 19 + ]; 11 20 12 21 outputs = [ "out" "dev" ]; 13 22