Merge pull request #101441 from marsam/fix-darwin-build

ruby: fix build on darwin
This commit is contained in:
Mario Rodas 2020-10-25 02:45:51 -05:00 committed by GitHub
commit cbe6fd3473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}";