From d73cc1e58601a4d12cfc353e7478fee8b18126cd Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Thu, 22 Oct 2020 04:20:00 +0000 Subject: [PATCH] ruby: fix build on darwin cc-tools 949.0.1 added a warning on linking which ruby misinterprets as an error with LDFLAGS. --- pkgs/development/interpreters/ruby/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix index 02d0f02c3495..7b36b04d1143 100644 --- a/pkgs/development/interpreters/ruby/default.nix +++ b/pkgs/development/interpreters/ruby/default.nix @@ -125,6 +125,10 @@ let "--with-out-ext=tk" # on yosemite, "generating encdb.h" will hang for a very long time without this flag "--with-setjmp-type=setjmp" + # silence linker warnings after upgrading darwin.cctools to 949.0.1, + # which ruby treats as problem with LDFLAGS + # https://github.com/NixOS/nixpkgs/issues/101330 + "LDFLAGS=-Wl,-w" ] ++ op (stdenv.hostPlatform != stdenv.buildPlatform) "--with-baseruby=${buildRuby}";