Ignore:
Timestamp:
Jul 5, 2009, 6:44:34 AM (15 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
5aec070
Parents:
1c78387
Message:

Add a sed to the temp system gcc to prevent gcc from including files from /tools/include while building native helper programs to run on the host. This fixes a compilation error on PPC and possibly other architectures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/temp-system/common/gcc.xml

    r1c78387 r1163716  
    9999    </variablelist>
    100100
     101    <para os="ts1">When gcc was configured it was told to find MPFR, GMP, PPL,
     102    and CLooG-PPL in /tools. However, when compiling gcc uses these same values
     103    for building native heper programs that run on the host. The following sed
     104    will change those values to look in cross-tools for the native programs
     105    only:</para>
     106
     107<screen os="ts2"><userinput>cp Makefile{,.orig}
     108sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:/tools:/cross-tools:g" \
     109    Makefile.orig &gt; Makefile</userinput></screen>
     110
    101111    <para os="cm">Compile the package:</para>
    102112
Note: See TracChangeset for help on using the changeset viewer.