1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

redstore: fix build under recent glibc

Previously the build would fail due to, e.g., `getaddrinfo` not being
defined.
This commit is contained in:
Robert Helgesson 2016-08-17 22:31:07 +02:00
parent 80c98d76ca
commit a4ae7b87f0
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -10,10 +10,12 @@ stdenv.mkDerivation rec {
};
buildInputs = [ gmp pkgconfig redland zlib librdf_raptor2 librdf_rasqal ];
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${librdf_raptor2}/include/raptor2"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${librdf_rasqal}/include/rasqal"
# Define _XOPEN_SOURCE to enable, e.g., getaddrinfo.
configureFlagsArray+=(
"CFLAGS=-D_XOPEN_SOURCE=600 -I${librdf_raptor2}/include/raptor2 -I${librdf_rasqal}/include/rasqal"
)
'';
meta = {