about summary refs log tree commit diff
path: root/pkgs/development/libraries/librsync
diff options
context:
space:
mode:
authorMitch Tishmack <mitch.tishmack@gmail.com>2015-11-22 14:08:33 -0600
committerRok Garbas <rok@garbas.si>2015-11-30 14:43:07 +0100
commit01fe47c78babce1ba6d1bc3fa4e44ad1eda4a543 (patch)
treec82b9f822c3e6c33c371ac671783db17be4b37bd /pkgs/development/libraries/librsync
parent7f7b0dc3f250809a427f5a4ee52893b0f27bd3a9 (diff)
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.
Diffstat (limited to 'pkgs/development/libraries/librsync')
-rw-r--r--pkgs/development/libraries/librsync/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/librsync/default.nix b/pkgs/development/libraries/librsync/default.nix
index c5a7a7202e2c8..2e3df7cf9e05f 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;
   };