nghttp2: fix configure script to correctly find jemalloc
This commit is contained in:
parent
a634c11075
commit
7745dc5dcf
@ -42,6 +42,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "000d50yzyysbr9ldhvnbpzn35vplqm08dnmh55wc5zk273gy383f";
|
sha256 = "000d50yzyysbr9ldhvnbpzn35vplqm08dnmh55wc5zk273gy383f";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Configure script searches for a symbol which does not exist in jemalloc on Darwin
|
||||||
|
# Reported upstream in https://github.com/tatsuhiro-t/nghttp2/issues/233
|
||||||
|
postPatch = if (stdenv.isDarwin && optJemalloc != null) then ''
|
||||||
|
substituteInPlace configure --replace "malloc_stats_print" "je_malloc_stats_print"
|
||||||
|
'' else null;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ optJansson optBoost optLibxml2 optJemalloc ]
|
buildInputs = [ optJansson optBoost optLibxml2 optJemalloc ]
|
||||||
++ stdenv.lib.optionals hasApp [ optOpenssl optLibev optZlib ];
|
++ stdenv.lib.optionals hasApp [ optOpenssl optLibev optZlib ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user