Ignore:
Timestamp:
05/14/2021 10:47:43 AM (3 years ago)
Author:
Thomas Trepl (Moody) <thomas@…>
Branches:
ml-11.0, multilib
Children:
2606939
Parents:
51c01bff
Message:

Remove entities for multilib pathes
Add usage of libc_cv_rtlddir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/glibc.xml

    r51c01bff r0ebda11  
    7373             --enable-stack-protector=strong          \
    7474             --with-headers=/usr/include              \
    75              libc_cv_slibdir=/usr/lib</userinput></screen>
     75             libc_cv_slibdir=/usr/lib                 \
     76             libc_cv_rtlddir=/usr/lib</userinput></screen>
    7677<screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">../configure --prefix=/usr                            \
    7778             --disable-werror                         \
     
    8081             --with-headers=/usr/include              \
    8182             --enable-multi-arch                      \
    82              libc_cv_slibdir=/usr/lib</userinput></screen>
     83             libc_cv_slibdir=/usr/lib                 \
     84             libc_cv_rtlddir=/usr/lib</userinput></screen>
    8385
    8486    <variablelist>
     
    125127          <para>This variable sets the correct library for all
    126128          systems.  We do not want lib64 to be used.</para>
     129        </listitem>
     130      </varlistentry>
     131
     132      <varlistentry>
     133        <term><parameter>libc_cv_rtlddir=/usr/lib</parameter></term>
     134        <listitem>
     135          <para>Fix hardcoded path to the executable loader in the
     136            <command>ldd</command> script.</para>
    127137        </listitem>
    128138      </varlistentry>
     
    222232
    223233<screen><userinput remap="install">make install</userinput></screen>
     234
     235    <para>Fix hardcoded path to the executable loader in
     236    <command>ldd</command> script:</para>
     237
     238<screen><userinput remap="install">sed '/RTLDLIST=/s@/usr@@g' -i /usr/bin/ldd</userinput></screen>
    224239
    225240    <para>Install the configuration file and runtime directory for
     
    483498
    484499    <para>Now recompile for m32. The extracted source can be
    485     reused but needs to cleaned before installing the m32
     500    reused but needs to be cleaned before installing the m32
    486501    version of Glibc.</para>
    487502
     
    502517      --with-headers=/usr/include        \
    503518      --enable-multi-arch                \
    504       --libdir=&usr-lib-m32;                \
    505       --libexecdir=&usr-lib-m32;            \
    506       libc_cv_slibdir=&usr-lib-m32;</userinput></screen>
     519      --libdir=/usr/lib32                \
     520      --libexecdir=/usr/lib32            \
     521      libc_cv_slibdir=/usr/lib32         \
     522      libc_cv_rtlddir=/usr/lib32</userinput></screen>
    507523
    508524    <para>Compile the package:</para>
     
    513529
    514530<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
    515 cp -a DESTDIR&usr-lib-m32;/* &usr-lib-m32;/
     531cp -a DESTDIR/usr/lib32/* /usr/lib32/
    516532install -vm644 DESTDIR/usr/include/gnu/{lib-names,stubs}-32.h \
    517                /usr/include/gnu/
    518 ln -svf ..&lib-m32;/ld-linux.so.2 /lib/ld-linux.so.2</userinput></screen>
     533               /usr/include/gnu/</userinput></screen>
     534<!-- no longer required as they are created in chap5
     535ln -svf ../lib32/ld-linux.so.2 /lib/ld-linux.so.2
     536-->
    519537
    520538    <para>Add the library name to the dynamic loader config:</para>
    521539
    522 <screen role="install"><userinput>echo "&usr-lib-m32;" &gt;&gt; /etc/ld.so.conf</userinput></screen>
     540<screen role="install"><userinput>echo "/usr/lib32" &gt;&gt; /etc/ld.so.conf</userinput></screen>
    523541
    524542    <caution>
     
    557575
    558576    <para>Now recompile for mx32. The extracted source can be
    559     reused but needs to cleaned before installing the mx32
     577    reused but needs to be cleaned before installing the mx32
    560578    version of Glibc.</para>
    561579
     
    574592      --build=$(../scripts/config.guess) \
    575593      --enable-kernel=&min-kernel;                \
    576       --with-headers=$LFS/usr/include    \
     594      --with-headers=/usr/include        \
    577595      --enable-multi-arch                \
    578       --libdir=&usr-lib-mx32;               \
    579       --libexecdir=&usr-lib-mx32;           \
    580       libc_cv_slibdir=&usr-lib-mx32;</userinput></screen>
     596      --libdir=/usr/libx32               \
     597      --libexecdir=/usr/libx32           \
     598      libc_cv_slibdir=/usr/libx32         \
     599      libc_cv_rtlddir=/usr/libx32</userinput></screen>
    581600
    582601    <para>Compile the package:</para>
     
    587606
    588607<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
    589 cp -a DESTDIR&usr-lib-mx32;/* &usr-lib-mx32;/
     608cp -a DESTDIR/usr/libx32/* /usr/libx32/
    590609install -vm644 DESTDIR/usr/include/gnu/{lib-names,stubs}-x32.h \
    591                /usr/include/gnu/
    592 ln -svf ..&lib-mx32;/ld-linux-x32.so.2 /lib/ld-linux-x32.so.2</userinput></screen>
    593 
     610               /usr/include/gnu/</userinput></screen>
     611<!-- no longer required as they are created in chap5
     612ln -svf ../libx32/ld-linux-x32.so.2 /lib/ld-linux-x32.so.2
     613-->
    594614    <para>Add the library name to the dynamic loader config:</para>
    595615
    596 <screen role="install"><userinput>echo "&usr-lib-mx32;" &gt;&gt; /etc/ld.so.conf</userinput></screen>
     616<screen role="install"><userinput>echo "/usr/libx32" &gt;&gt; /etc/ld.so.conf</userinput></screen>
    597617
    598618    <caution>
Note: See TracChangeset for help on using the changeset viewer.