From 01fe47c78babce1ba6d1bc3fa4e44ad1eda4a543 Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Sun, 22 Nov 2015 14:08:33 -0600 Subject: [PATCH] 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. --- pkgs/development/libraries/librsync/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/librsync/default.nix b/pkgs/development/libraries/librsync/default.nix index c5a7a7202e2..2e3df7cf9e0 100644 --- a/pkgs/development/libraries/librsync/default.nix +++ b/pkgs/development/libraries/librsync/default.nix @@ -3,7 +3,7 @@ stdenv.mkDerivation rec { name = "librsync-${version}"; version = "1.0.0"; - + src = fetchFromGitHub { owner = "librsync"; repo = "librsync"; @@ -15,6 +15,8 @@ stdenv.mkDerivation rec { configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared"; + CFLAGS = "-std=gnu89"; + crossAttrs = { dontStrip = true; };