summary refs log tree commit diff
path: root/pkgs/development/interpreters/ruby
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-10-22 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2020-10-22 04:20:00 +0000
commitd73cc1e58601a4d12cfc353e7478fee8b18126cd (patch)
treec082a5f5724c597a1730dc87e40dc33b26b6a55a /pkgs/development/interpreters/ruby
parent2f31499703891b404f8bf875e24ab9df26f44663 (diff)
downloadnixpkgs-d73cc1e58601a4d12cfc353e7478fee8b18126cd.tar
nixpkgs-d73cc1e58601a4d12cfc353e7478fee8b18126cd.tar.gz
nixpkgs-d73cc1e58601a4d12cfc353e7478fee8b18126cd.tar.bz2
nixpkgs-d73cc1e58601a4d12cfc353e7478fee8b18126cd.tar.lz
nixpkgs-d73cc1e58601a4d12cfc353e7478fee8b18126cd.tar.xz
nixpkgs-d73cc1e58601a4d12cfc353e7478fee8b18126cd.tar.zst
nixpkgs-d73cc1e58601a4d12cfc353e7478fee8b18126cd.zip
ruby: fix build on darwin
cc-tools 949.0.1 added a warning on linking which ruby misinterprets as
an error with LDFLAGS.
Diffstat (limited to 'pkgs/development/interpreters/ruby')
-rw-r--r--pkgs/development/interpreters/ruby/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix
index 02d0f02c349..7b36b04d114 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}";