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.
wip/yesman
Mitch Tishmack 9 years ago committed by Rok Garbas
parent 7f7b0dc3f2
commit 01fe47c78b
  1. 4
      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;
};

Loading…
Cancel
Save