Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

librsync needs --std=gnu89 due to use of inline, fixes #11211

Without this, if compiled with clang, all static functions do not end
up in the resultant shared library due to clang defaulting to c99.

The simple fix is to adjust CFLAGS, otherwise one needs to patch
a lot of inline's away needlessly.

authored by Mitch Tishmack and committed by Rok Garbas 01fe47c7 7f7b0dc3

+3 -1
+3 -1
pkgs/development/libraries/librsync/default.nix
··· 3 stdenv.mkDerivation rec { 4 name = "librsync-${version}"; 5 version = "1.0.0"; 6 - 7 src = fetchFromGitHub { 8 owner = "librsync"; 9 repo = "librsync"; ··· 14 buildInputs = [ autoreconfHook perl zlib bzip2 popt ]; 15 16 configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared"; 17 18 crossAttrs = { 19 dontStrip = true;
··· 3 stdenv.mkDerivation rec { 4 name = "librsync-${version}"; 5 version = "1.0.0"; 6 + 7 src = fetchFromGitHub { 8 owner = "librsync"; 9 repo = "librsync"; ··· 14 buildInputs = [ autoreconfHook perl zlib bzip2 popt ]; 15 16 configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared"; 17 + 18 + CFLAGS = "-std=gnu89"; 19 20 crossAttrs = { 21 dontStrip = true;