Skip to content

Commit d73cc1e

Browse files
committed
ruby: fix build on darwin
cc-tools 949.0.1 added a warning on linking which ruby misinterprets as an error with LDFLAGS.
1 parent 2f31499 commit d73cc1e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pkgs/development/interpreters/ruby/default.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ let
125125
"--with-out-ext=tk"
126126
# on yosemite, "generating encdb.h" will hang for a very long time without this flag
127127
"--with-setjmp-type=setjmp"
128+
# silence linker warnings after upgrading darwin.cctools to 949.0.1,
129+
# which ruby treats as problem with LDFLAGS
130+
# https://github.com/NixOS/nixpkgs/issues/101330
131+
"LDFLAGS=-Wl,-w"
128132
]
129133
++ op (stdenv.hostPlatform != stdenv.buildPlatform)
130134
"--with-baseruby=${buildRuby}";

0 commit comments

Comments
 (0)