Ignore:
Timestamp:
Jan 9, 2009, 11:08:33 AM (16 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
3309623
Parents:
bd0e5c0
Message:

Forgot to add important sed to build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/common/gcc-static.xml

    rbd0e5c0 rc5146c2  
    4242<screen os="ad"><userinput>patch -Np1 -i ../&gcc-posix-patch;</userinput></screen>
    4343
     44    <para os="s1">We will change the search locations from usr to tools:</para>
     45
     46<screen os="s2"><userinput>for file in $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h); do
     47cp -v ${file}{,.orig}
     48sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' \
     49-e 's@/usr@/tools@g' ${file}.orig > $file
     50done"</userinput></screen>
     51
    4452    <para os="ag">Change the StartFile Spec to point to the correct library
    4553    location:</para>
    4654
    47 <screen os="ah"><userinput>echo "
     55<screen os="ah"><userinput>for file in $(find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h); do
     56echo "
    4857#undef STANDARD_STARTFILE_PREFIX_1
    4958#undef STANDARD_STARTFILE_PREFIX_2
    5059#define STANDARD_STARTFILE_PREFIX_1 \"/tools/lib/\"
    51 #define STANDARD_STARTFILE_PREFIX_2 \"\"" &gt;&gt; gcc/config/linux.h</userinput></screen>
     60#define STANDARD_STARTFILE_PREFIX_2 \"\"" &gt;&gt; ${file}</userinput></screen>
    5261
    5362    <para os="ai">Now alter <command>gcc</command>'s c preprocessor's default
Note: See TracChangeset for help on using the changeset viewer.