Skip to content

Commit

Permalink
gperftools: fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Sep 18, 2017
1 parent 6b7e103 commit 69bf06a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/libraries/gperftools/default.nix
Expand Up @@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
substituteInPlace libtool --replace stdc++ c++
'';

NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.isDarwin "-D_XOPEN_SOURCE";

# some packages want to link to the static tcmalloc_minimal
# to drop the runtime dependency on gperftools
dontDisableStatic = true;
Expand Down

0 comments on commit 69bf06a

Please sign in to comment.