Commit 62b6c7f7 authored by Audrey Dutcher's avatar Audrey Dutcher
Browse files

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.
parent 25426058
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 ''