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.
This commit is contained in:
Audrey Dutcher 2024-06-07 09:30:20 -07:00
parent 2542605888
commit 62b6c7f71b

View file

@ -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 ''