diff options
author | Mitch Tishmack <mitch.tishmack@gmail.com> | 2015-11-22 14:08:33 -0600 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2015-11-30 14:43:07 +0100 |
commit | 01fe47c78babce1ba6d1bc3fa4e44ad1eda4a543 (patch) | |
tree | c82b9f822c3e6c33c371ac671783db17be4b37bd /pkgs/development/libraries/librsync | |
parent | 7f7b0dc3f250809a427f5a4ee52893b0f27bd3a9 (diff) | |
download | nixlib-01fe47c78babce1ba6d1bc3fa4e44ad1eda4a543.tar nixlib-01fe47c78babce1ba6d1bc3fa4e44ad1eda4a543.tar.gz nixlib-01fe47c78babce1ba6d1bc3fa4e44ad1eda4a543.tar.bz2 nixlib-01fe47c78babce1ba6d1bc3fa4e44ad1eda4a543.tar.lz nixlib-01fe47c78babce1ba6d1bc3fa4e44ad1eda4a543.tar.xz nixlib-01fe47c78babce1ba6d1bc3fa4e44ad1eda4a543.tar.zst nixlib-01fe47c78babce1ba6d1bc3fa4e44ad1eda4a543.zip |
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.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/librsync/default.nix b/pkgs/development/libraries/librsync/default.nix index c5a7a7202e2c..2e3df7cf9e05 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; }; |