Changeset 625455a in clfs-sysroot for BOOK/final-system/common/gcc.xml


Ignore:
Timestamp:
Jul 12, 2009, 4:45:11 PM (15 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
135767c
Parents:
40f9af6
Message:

Fix compilation errors in the final system GCC.

File:
1 edited

Legend:

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

    r40f9af6 r625455a  
    7474    <para os="e">Prepare GCC for compilation:</para>
    7575
    76 <screen os="f"><userinput>../gcc-&gcc-version;/configure --prefix=/usr --libexecdir=/usr/lib \
     76<screen os="f"><userinput>LDFLAGS="-Wl,-rpath-link,${CLFS}/cross-tools/${CLFS_TARGET}/lib" \
     77    ../gcc-&gcc-version;/configure --prefix=/usr --libexecdir=/usr/lib \
    7778    --build=${CLFS_HOST} --host=${CLFS_TARGET} --target=${CLFS_TARGET} \
    7879    --enable-shared --enable-threads=posix --enable-__cxa_atexit \
    7980    --enable-c99 --enable-long-long --enable-clocale=gnu \
    8081    --enable-languages=c,c++ --disable-libstdcxx-pch</userinput></screen>
     82
     83    <para os="ts1">The following will prevent GCC from looking in the wrong
     84    directories for headers and libraries:</para>
     85
     86<screen os="ts2"><userinput>cp Makefile{,.orig}
     87sed "/^HOST_\(GMP\|PPL\|CLOOG\)\(LIBS\|INC\)/s:-[IL]/\(lib\|include\)::" \
     88    Makefile.orig &gt; Makefile</userinput></screen>
    8189
    8290    <para os="g">Compile the package:</para>
Note: See TracChangeset for help on using the changeset viewer.