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.
This commit is contained in:
Mitch Tishmack 2015-11-22 14:08:33 -06:00 committed by Rok Garbas
parent 7f7b0dc3f2
commit 01fe47c78b

View File

@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
configureFlags = if stdenv.isCygwin then "--enable-static" else "--enable-shared";
CFLAGS = "-std=gnu89";
crossAttrs = {
dontStrip = true;
};