diff options
author | Audrey Dutcher <audrey@rhelmot.io> | 2024-06-07 09:30:20 -0700 |
---|---|---|
committer | Audrey Dutcher <audrey@rhelmot.io> | 2024-06-07 20:33:33 -0700 |
commit | 62b6c7f71b472157e795e42fbd854cfd03732d7c (patch) | |
tree | 25436412d095f4f8a4148a5f9820d1f86fed3546 /pkgs/development/interpreters/ruby/default.nix | |
parent | 2542605888a650adf055af93f3d9a0dd0d2a93c0 (diff) |
ruby: provide correct qsort configuration on FreeBSD cross
I believe that BSD qsort is a macro and GNU qsort is a function, which
affects how you can use them.
Diffstat (limited to 'pkgs/development/interpreters/ruby/default.nix')
-rw-r--r-- | pkgs/development/interpreters/ruby/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix index 5c8bb288bd7d..8758c11528ea 100644 --- a/pkgs/development/interpreters/ruby/default.nix +++ b/pkgs/development/interpreters/ruby/default.nix @@ -160,6 +160,9 @@ let "--with-out-ext=tk" # on yosemite, "generating encdb.h" will hang for a very long time without this flag "--with-setjmp-type=setjmp" + ] ++ ops stdenv.hostPlatform.isFreeBSD [ + "rb_cv_gnu_qsort_r=no" + "rb_cv_bsd_qsort_r=yes" ]; preConfigure = opString docSupport '' |