Ignore:
File:
1 edited

Legend:

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

    rcc858ed re05c4f0  
    2424
    2525    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    26     href="../../final-system/common/gcc.xml"
     26    href="../../cross-tools/common/gcc-static.xml"
    2727    xpointer="xpointer(//*[@os='p1'])"/>
    2828
    2929    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    30     href="../../final-system/common/gcc.xml"
     30    href="../../cross-tools/common/gcc-static.xml"
    3131    xpointer="xpointer(//*[@os='p2'])"/>
    3232
     
    4747    xpointer="xpointer(//*[@os='ah'])"/>
    4848
    49     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    50     href="../../final-system/common/gcc.xml"
    51     xpointer="xpointer(//*[@os='fix1'])"/>
     49    <para os="cf">Also, we need to set the directory searched by the fixincludes
     50    process for system headers, so it won't look at the host's headers:</para>
    5251
    53     <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    54     href="../../final-system/common/gcc.xml"
    55     xpointer="xpointer(//*[@os='fix2'])"/>
     52<screen os="cg"><userinput>cp -v gcc/Makefile.in{,.orig}
     53sed -e 's@\(^NATIVE_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g' \
     54    gcc/Makefile.in.orig &gt; gcc/Makefile.in</userinput></screen>
    5655
    5756    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     
    7271<screen os="ck"><userinput>../gcc-&gcc-version;/configure --prefix=/tools \
    7372  --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
    74   --libexecdir=/tools/lib --with-local-prefix=/tools --enable-long-long \
    75   --enable-c99 --enable-shared --enable-threads=posix --disable-multilib \
    76   --disable-nls --enable-__cxa_atexit --enable-languages=c,c++ \
    77   --disable-libstdcxx-pch --enable-cloog-backend=isl --with-gmp=/tools \
    78   --with-mpfr=/tools --with-mpc=/tools --with-isl=/tools \
    79   --disable-isl-version-check --with-cloog=/tools --with-system-zlib \
    80   --with-native-system-header-dir=/tools/include --disable-libssp \
    81   --disable-install-libiberty --enable-checking=release \
    82   --enable-libstdcxx-time</userinput></screen>
     73  --with-local-prefix=/tools --enable-long-long --enable-c99 \
     74  --enable-shared --enable-threads=posix --enable-__cxa_atexit \
     75  --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch \
     76  --disable-multilib</userinput></screen>
    8377
    8478    <variablelist os="cl">
     
    9690    </variablelist>
    9791
    98     <para os="s1">The following will prevent GCC from looking in the wrong
     92    <para os="ts1">The following will prevent GCC from looking in the wrong
    9993    directories for headers and libraries:</para>
    10094
    101 <screen os="s2"><userinput>cp -v Makefile{,.orig}
    102 sed "/^HOST_\(GMP\|ISL\|CLOOG\)\(LIBS\|INC\)/s:/tools:/cross-tools:g" \
    103     Makefile.orig > Makefile</userinput></screen>
     95<screen os="ts2"><userinput>cp -v Makefile{,.orig}
     96sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" \
     97    Makefile.orig &gt; Makefile</userinput></screen>
    10498
    10599    <para os="cm">Compile the package:</para>
Note: See TracChangeset for help on using the changeset viewer.