mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +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:
parent
80c98d76ca
commit
a4ae7b87f0
@ -12,8 +12,10 @@ 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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user