mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
gperftools: suppress compilation warning on macOS
This commit is contained in:
parent
88d34b1dda
commit
6a560f499c
@ -16,7 +16,9 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace libtool --replace stdc++ c++
|
substituteInPlace libtool --replace stdc++ c++
|
||||||
'';
|
'';
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optional stdenv.isDarwin "-D_XOPEN_SOURCE";
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.isDarwin [
|
||||||
|
"-D_XOPEN_SOURCE" "-Wno-aligned-allocation-unavailable"
|
||||||
|
];
|
||||||
|
|
||||||
# some packages want to link to the static tcmalloc_minimal
|
# some packages want to link to the static tcmalloc_minimal
|
||||||
# to drop the runtime dependency on gperftools
|
# to drop the runtime dependency on gperftools
|
||||||
|
Loading…
Reference in New Issue
Block a user