about summary refs log tree commit diff
path: root/pkgs/development/libraries/glib
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-08-03 11:10:41 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2019-08-05 06:10:50 -0400
commit60266eb504938631d2162a1fba3044eaa0d62d91 (patch)
tree9891cf55355ed34eb8fb3eba8392e5362632a7b2 /pkgs/development/libraries/glib
parent27a71a19ed6748177c073fe8dfad95849e9f5058 (diff)
downloadnixlib-60266eb504938631d2162a1fba3044eaa0d62d91.tar
nixlib-60266eb504938631d2162a1fba3044eaa0d62d91.tar.gz
nixlib-60266eb504938631d2162a1fba3044eaa0d62d91.tar.bz2
nixlib-60266eb504938631d2162a1fba3044eaa0d62d91.tar.lz
nixlib-60266eb504938631d2162a1fba3044eaa0d62d91.tar.xz
nixlib-60266eb504938631d2162a1fba3044eaa0d62d91.tar.zst
nixlib-60266eb504938631d2162a1fba3044eaa0d62d91.zip
glib: add cflag G_DISABLE_CAST_CHECKS
This is what would have been passed before with the release
buildtype.

See: https://gitlab.gnome.org/GNOME/glib/blob/2.60.4/meson.build#L208
Diffstat (limited to 'pkgs/development/libraries/glib')
-rw-r--r--pkgs/development/libraries/glib/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/libraries/glib/default.nix b/pkgs/development/libraries/glib/default.nix
index ecbcbea13941..ed7c66946faa 100644
--- a/pkgs/development/libraries/glib/default.nix
+++ b/pkgs/development/libraries/glib/default.nix
@@ -98,8 +98,12 @@ stdenv.mkDerivation rec {
 
   LC_ALL = "en_US.UTF-8";
 
-  NIX_CFLAGS_COMPILE = (optional stdenv.isSunOS "-DBSD_COMP")
-    ++ [ "-Wno-error=nonnull" ];
+  NIX_CFLAGS_COMPILE = [
+    "-Wno-error=nonnull"
+    # Default for release buildtype but passed manually because
+    # we're using plain
+    "-DG_DISABLE_CAST_CHECKS"
+  ] ++ optional stdenv.isSunOS "-DBSD_COMP";
 
   postPatch = ''
     # substitute fix-gio-launch-desktop-path.patch