From 62b6c7f71b472157e795e42fbd854cfd03732d7c Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Fri, 7 Jun 2024 09:30:20 -0700 Subject: [PATCH] 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. --- pkgs/development/interpreters/ruby/default.nix | 3 +++ 1 file changed, 3 insertions(+) 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 ''