Changeset 30ae09bb


Ignore:
Timestamp:
02/26/2022 03:43:12 PM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/clfs-ng
Children:
db51ee9
Parents:
96dda27a
git-author:
Xi Ruoyao <xry111@…> (12/17/2021 12:09:06 PM)
git-committer:
Xi Ruoyao <xry111@…> (02/26/2022 03:43:12 PM)
Message:

cross-ng: gcc: don't rely on "uname -m"

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter05/gcc-pass1.xml

    r96dda27a r30ae09bb  
    6363mv -v mpc-&mpc-version; mpc</userinput></screen>
    6464
    65     <para>On x86_64 hosts, set the default directory name for
    66     64-bit libraries to <quote>lib</quote>:</para>
    67 
    68 <screen><userinput remap="pre">case $(uname -m) in
    69   x86_64)
    70     sed -e '/m64=/s/lib64/lib/' \
    71         -i.orig gcc/config/i386/t-linux64
    72  ;;
    73 esac</userinput></screen>
     65    <para>For x86_64 target, set the default directory name for
     66    64-bit libraries to <quote>lib</quote>.  The command is unnecessary,
     67    but harmless for 32-bit x86.  If you are building for another target,
     68    you may need to adjust the command for your target.</para>
     69
     70<screen><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \
     71    -i.orig gcc/config/i386/t-linux64</userinput></screen>
    7472
    7573    <para>The GCC documentation recommends building GCC
  • chapter06/gcc-pass2.xml

    r96dda27a r30ae09bb  
    5555mv -v mpc-&mpc-version; mpc</userinput></screen>
    5656
    57     <para>If building on x86_64, change the default directory name for 64-bit
    58     libraries to <quote>lib</quote>:</para>
     57    <para>For x86_64 target, set the default directory name for
     58    64-bit libraries to <quote>lib</quote>.  The command is unnecessary,
     59    but harmless for 32-bit x86.  If you are building for another target,
     60    you may need to adjust the command for your target.</para>
    5961
    60 <screen><userinput remap="pre">case $(uname -m) in
    61   x86_64)
    62     sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
    63   ;;
    64 esac</userinput></screen>
     62<screen><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \
     63    -i.orig gcc/config/i386/t-linux64</userinput></screen>
     64
    6565<!--
    6666    <para>Fix an issue with GCC-10.1 when building with a cross
  • chapter08/gcc.xml

    r96dda27a r30ae09bb  
    5050    -i libsanitizer/sanitizer_common/sanitizer_posix_libcdep.cpp</userinput></screen>
    5151
    52     <para>If building on x86_64, change the default directory name for 64-bit
    53     libraries to <quote>lib</quote>:</para>
    54 
    55 <screen><userinput remap="pre">case $(uname -m) in
    56   x86_64)
    57     sed -e '/m64=/s/lib64/lib/' \
    58         -i.orig gcc/config/i386/t-linux64
    59   ;;
    60 esac</userinput></screen>
     52    <para>For x86_64 target, set the default directory name for
     53    64-bit libraries to <quote>lib</quote>.  The command is unnecessary,
     54    but harmless for 32-bit x86.  If you are building for another target,
     55    you may need to adjust the command for your target.</para>
     56
     57<screen><userinput remap="pre">sed -e '/m64=/s/lib64/lib/' \
     58    -i.orig gcc/config/i386/t-linux64</userinput></screen>
    6159
    6260    <para>The GCC documentation recommends building GCC in a dedicated build directory:</para>
Note: See TracChangeset for help on using the changeset viewer.