From cb057db0a38323d1c3de5fe4b02e481e0bb35ef0 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Sun, 18 Oct 2020 17:24:57 -0700 Subject: [PATCH] lcms2: fix build on darwin --- pkgs/development/libraries/lcms2/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/lcms2/default.nix b/pkgs/development/libraries/lcms2/default.nix index 0cf62285890..6e81dfc0718 100644 --- a/pkgs/development/libraries/lcms2/default.nix +++ b/pkgs/development/libraries/lcms2/default.nix @@ -12,6 +12,9 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [ libtiff libjpeg zlib ]; + # See https://trac.macports.org/ticket/60656 + LDFLAGS = if stdenv.hostPlatform.isDarwin then "-Wl,-w" else null; + meta = with stdenv.lib; { description = "Color management engine"; homepage = "http://www.littlecms.com/";