Changeset 77b45595 for general/prog


Ignore:
Timestamp:
01/22/2024 09:03:39 PM (3 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, ken/TL2024, lazarus, rahul/power-profiles-daemon, trunk, xry111/llvm18
Children:
3dcfa05
Parents:
0905b41
git-author:
Xi Ruoyao <xry111@…> (01/22/2024 08:59:48 PM)
git-committer:
Xi Ruoyao <xry111@…> (01/22/2024 09:03:39 PM)
Message:

ruby: Don't use Glibc qsort_r

The first adaption for Glibc-2.39!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/ruby.xml

    r0905b41 r77b45595  
    9696    </para>
    9797
    98 <screen><userinput>./configure --prefix=/usr      \
    99             --disable-rpath    \
    100             --enable-shared    \
    101             --without-valgrind \
    102             --without-baseruby \
     98<screen><userinput>./configure --prefix=/usr         \
     99            --disable-rpath       \
     100            --enable-shared       \
     101            --without-valgrind    \
     102            --without-baseruby    \
     103            ac_cv_func_qsort_r=no \
    103104            --docdir=/usr/share/doc/ruby-&ruby-version; &amp;&amp;
    104105make</userinput></screen>
     
    176177      system <command>ruby</command> if it is already installed. The build
    177178      system will use the newly built version instead.
     179    </para>
     180
     181    <para>
     182      <parameter>ac_cv_func_qsort_r=no</parameter>: This switch prevents
     183      using the <function>qsort_r</function> function from Glibc.  Ruby
     184      makes some aggressive optimization assuming
     185      <function>qsort_r</function> would never allocate the buffer with
     186      <function>malloc</function>, but the assumption is no longer true with
     187      Glibc-2.39 or newer.  With this switch Ruby will use its own sort
     188      implementation instead.
    178189    </para>
    179190
Note: See TracChangeset for help on using the changeset viewer.