summary refs log tree commit diff
path: root/pkgs/development/libraries/gperftools
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2018-04-30 07:43:57 +0100
committerJörg Thalheim <joerg@thalheim.io>2018-04-30 07:44:50 +0100
commit6a560f499c5a1038a573ea961ef1d1166e1b3677 (patch)
treec2cb90b8e09ad1061f37428d8578589cc192b048 /pkgs/development/libraries/gperftools
parent88d34b1dda9094516c0fc6ae9f17b44c8247e848 (diff)
downloadnixpkgs-6a560f499c5a1038a573ea961ef1d1166e1b3677.tar
nixpkgs-6a560f499c5a1038a573ea961ef1d1166e1b3677.tar.gz
nixpkgs-6a560f499c5a1038a573ea961ef1d1166e1b3677.tar.bz2
nixpkgs-6a560f499c5a1038a573ea961ef1d1166e1b3677.tar.lz
nixpkgs-6a560f499c5a1038a573ea961ef1d1166e1b3677.tar.xz
nixpkgs-6a560f499c5a1038a573ea961ef1d1166e1b3677.tar.zst
nixpkgs-6a560f499c5a1038a573ea961ef1d1166e1b3677.zip
gperftools: suppress compilation warning on macOS
Diffstat (limited to 'pkgs/development/libraries/gperftools')
-rw-r--r--pkgs/development/libraries/gperftools/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/gperftools/default.nix b/pkgs/development/libraries/gperftools/default.nix
index 2a2710531e0..de71704cff8 100644
--- a/pkgs/development/libraries/gperftools/default.nix
+++ b/pkgs/development/libraries/gperftools/default.nix
@@ -16,7 +16,9 @@ stdenv.mkDerivation rec {
     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
   # to drop the runtime dependency on gperftools