mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 11:49:20 +01:00
Move external build directories into dedicated build directories inside the
source tree for binutils, gcc, and glibc. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10991 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
e408cb0560
commit
f1dd5475c9
@ -35,6 +35,17 @@
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
-->
|
-->
|
||||||
|
<listitem>
|
||||||
|
<para>2016-01-27</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[bdubbs] - Move external build directories into
|
||||||
|
dedicated build directories inside the source tree for
|
||||||
|
binutils, gcc, and glibc.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>2016-01-24</para>
|
<para>2016-01-24</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
@ -52,11 +52,11 @@
|
|||||||
linker and assembler to determine which of their own features to
|
linker and assembler to determine which of their own features to
|
||||||
enable.</para>
|
enable.</para>
|
||||||
|
|
||||||
<para>The Binutils documentation recommends building Binutils outside of the
|
<para>The Binutils documentation recommends building Binutils
|
||||||
source directory in a dedicated build directory:</para>
|
in a dedicated build directory:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir -v ../binutils-build
|
<screen><userinput remap="pre">mkdir -v build
|
||||||
cd ../binutils-build</userinput></screen>
|
cd build</userinput></screen>
|
||||||
|
|
||||||
<note>
|
<note>
|
||||||
<para>In order for the SBU values listed in the rest of the book
|
<para>In order for the SBU values listed in the rest of the book
|
||||||
@ -72,8 +72,7 @@ cd ../binutils-build</userinput></screen>
|
|||||||
|
|
||||||
<para>Now prepare Binutils for compilation:</para>
|
<para>Now prepare Binutils for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">../binutils-&binutils-version;/configure \
|
<screen><userinput remap="configure">../configure --prefix=/tools \
|
||||||
--prefix=/tools \
|
|
||||||
--with-sysroot=$LFS \
|
--with-sysroot=$LFS \
|
||||||
--with-lib-path=/tools/lib \
|
--with-lib-path=/tools/lib \
|
||||||
--target=$LFS_TGT \
|
--target=$LFS_TGT \
|
||||||
|
@ -45,15 +45,15 @@
|
|||||||
|
|
||||||
<para>Create a separate build directory again:</para>
|
<para>Create a separate build directory again:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir -v ../binutils-build
|
<screen><userinput remap="pre">mkdir -v build
|
||||||
cd ../binutils-build</userinput></screen>
|
cd build</userinput></screen>
|
||||||
|
|
||||||
<para>Prepare Binutils for compilation:</para>
|
<para>Prepare Binutils for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">CC=$LFS_TGT-gcc \
|
<screen><userinput remap="configure">CC=$LFS_TGT-gcc \
|
||||||
AR=$LFS_TGT-ar \
|
AR=$LFS_TGT-ar \
|
||||||
RANLIB=$LFS_TGT-ranlib \
|
RANLIB=$LFS_TGT-ranlib \
|
||||||
../binutils-&binutils-version;/configure \
|
../configure \
|
||||||
--prefix=/tools \
|
--prefix=/tools \
|
||||||
--disable-nls \
|
--disable-nls \
|
||||||
--disable-werror \
|
--disable-werror \
|
||||||
|
@ -111,15 +111,15 @@ done</userinput></screen>
|
|||||||
|
|
||||||
<screen><userinput remap="pre">sed -i 's/if \((code.*))\)/if (\1 \&\& \!DEBUG_INSN_P (insn))/' gcc/sched-deps.c</userinput></screen>
|
<screen><userinput remap="pre">sed -i 's/if \((code.*))\)/if (\1 \&\& \!DEBUG_INSN_P (insn))/' gcc/sched-deps.c</userinput></screen>
|
||||||
-->
|
-->
|
||||||
<para>The GCC documentation recommends building GCC outside of the
|
<para>The GCC documentation recommends building GCC
|
||||||
source directory in a dedicated build directory:</para>
|
in a dedicated build directory:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir -v ../gcc-build
|
<screen><userinput remap="pre">mkdir -v build
|
||||||
cd ../gcc-build</userinput></screen>
|
cd build</userinput></screen>
|
||||||
|
|
||||||
<para>Prepare GCC for compilation:</para>
|
<para>Prepare GCC for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">../gcc-&gcc-version;/configure \
|
<screen><userinput remap="configure">../configure \
|
||||||
--target=$LFS_TGT \
|
--target=$LFS_TGT \
|
||||||
--prefix=/tools \
|
--prefix=/tools \
|
||||||
--with-glibc-version=2.11 \
|
--with-glibc-version=2.11 \
|
||||||
|
@ -101,8 +101,8 @@ mv -v mpc-&mpc-version; mpc</userinput></screen>
|
|||||||
-->
|
-->
|
||||||
<para>Create a separate build directory again:</para>
|
<para>Create a separate build directory again:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir -v ../gcc-build
|
<screen><userinput remap="pre">mkdir -v build
|
||||||
cd ../gcc-build</userinput></screen>
|
cd build</userinput></screen>
|
||||||
|
|
||||||
<para>Before starting to build GCC, remember to unset any environment
|
<para>Before starting to build GCC, remember to unset any environment
|
||||||
variables that override the default optimization flags.</para>
|
variables that override the default optimization flags.</para>
|
||||||
@ -113,7 +113,7 @@ cd ../gcc-build</userinput></screen>
|
|||||||
CXX=$LFS_TGT-g++ \
|
CXX=$LFS_TGT-g++ \
|
||||||
AR=$LFS_TGT-ar \
|
AR=$LFS_TGT-ar \
|
||||||
RANLIB=$LFS_TGT-ranlib \
|
RANLIB=$LFS_TGT-ranlib \
|
||||||
../gcc-&gcc-version;/configure \
|
../configure \
|
||||||
--prefix=/tools \
|
--prefix=/tools \
|
||||||
--with-local-prefix=/tools \
|
--with-local-prefix=/tools \
|
||||||
--with-native-system-header-dir=/tools/include \
|
--with-native-system-header-dir=/tools/include \
|
||||||
|
@ -107,9 +107,7 @@
|
|||||||
<para>Change back to the sources directory.</para>
|
<para>Change back to the sources directory.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Delete the extracted source directory and any
|
<para>Delete the extracted source directory unless instructed otherwise.</para>
|
||||||
<filename class="directory"><replaceable><package></replaceable>-build</filename>
|
|
||||||
directories that were created in the build process unless instructed otherwise.</para>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</orderedlist>
|
</orderedlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
@ -47,15 +47,15 @@
|
|||||||
|
|
||||||
<screen><userinput remap="pre">patch -Np1 -i ../&glibc-upstream-patch;</userinput></screen>
|
<screen><userinput remap="pre">patch -Np1 -i ../&glibc-upstream-patch;</userinput></screen>
|
||||||
|
|
||||||
<para>The Glibc documentation recommends building Glibc outside of the source
|
<para>The Glibc documentation recommends building Glibc
|
||||||
directory in a dedicated build directory:</para>
|
in a dedicated build directory:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir -v ../glibc-build
|
<screen><userinput remap="pre">mkdir -v build
|
||||||
cd ../glibc-build</userinput></screen>
|
cd build</userinput></screen>
|
||||||
|
|
||||||
<para>Next, prepare Glibc for compilation:</para>
|
<para>Next, prepare Glibc for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">../glibc-&glibc-version;/configure \
|
<screen><userinput remap="configure">../configure \
|
||||||
--prefix=/tools \
|
--prefix=/tools \
|
||||||
--host=$LFS_TGT \
|
--host=$LFS_TGT \
|
||||||
--build=$(../glibc-&glibc-version;/scripts/config.guess) \
|
--build=$(../glibc-&glibc-version;/scripts/config.guess) \
|
||||||
|
@ -48,14 +48,14 @@
|
|||||||
<filename>gcc-&gcc-version;</filename> directory.</para>
|
<filename>gcc-&gcc-version;</filename> directory.</para>
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
<para>Create a directory for Libstdc++ and enter it:</para>
|
<para>Create a separate build directory for Libstdc++ and enter it:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir -v ../gcc-build
|
<screen><userinput remap="pre">mkdir -v build
|
||||||
cd ../gcc-build</userinput></screen>
|
cd build</userinput></screen>
|
||||||
|
|
||||||
<para>Prepare Libstdc++ for compilation:</para>
|
<para>Prepare Libstdc++ for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">../gcc-&gcc-version;/libstdc++-v3/configure \
|
<screen><userinput remap="configure">../libstdc++-v3/configure \
|
||||||
--host=$LFS_TGT \
|
--host=$LFS_TGT \
|
||||||
--prefix=/tools \
|
--prefix=/tools \
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
@ -65,15 +65,15 @@ Ask your system administrator to create more.</computeroutput></screen>
|
|||||||
|
|
||||||
<screen><userinput remap="pre">patch -Np1 -i ../&binutils-multiple-plugins-patch;</userinput></screen>
|
<screen><userinput remap="pre">patch -Np1 -i ../&binutils-multiple-plugins-patch;</userinput></screen>
|
||||||
-->
|
-->
|
||||||
<para>The Binutils documentation recommends building Binutils outside of the
|
<para>The Binutils documentation recommends building Binutils
|
||||||
source directory in a dedicated build directory:</para>
|
in a dedicated build directory:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir -v ../binutils-build
|
<screen><userinput remap="pre">mkdir -v build
|
||||||
cd ../binutils-build</userinput></screen>
|
cd build</userinput></screen>
|
||||||
|
|
||||||
<para>Prepare Binutils for compilation:</para>
|
<para>Prepare Binutils for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">../binutils-&binutils-version;/configure --prefix=/usr \
|
<screen><userinput remap="configure">../configure --prefix=/usr \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
--disable-werror</userinput></screen>
|
--disable-werror</userinput></screen>
|
||||||
|
|
||||||
|
@ -45,17 +45,15 @@
|
|||||||
|
|
||||||
<screen><userinput remap="pre">patch -Np1 -i ../&gcc-upstream-patch;</userinput></screen>
|
<screen><userinput remap="pre">patch -Np1 -i ../&gcc-upstream-patch;</userinput></screen>
|
||||||
-->
|
-->
|
||||||
<para>The GCC documentation recommends building GCC outside of the source
|
<para>The GCC documentation recommends building GCC in a dedicated build directory:</para>
|
||||||
directory in a dedicated build directory:</para>
|
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir -v ../gcc-build
|
<screen><userinput remap="pre">mkdir -v build
|
||||||
cd ../gcc-build</userinput></screen>
|
cd build</userinput></screen>
|
||||||
|
|
||||||
<para>Prepare GCC for compilation:</para>
|
<para>Prepare GCC for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">SED=sed \
|
<screen><userinput remap="configure">SED=sed \
|
||||||
../gcc-&gcc-version;/configure \
|
../configure --prefix=/usr \
|
||||||
--prefix=/usr \
|
|
||||||
--enable-languages=c,c++ \
|
--enable-languages=c,c++ \
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
--disable-bootstrap \
|
--disable-bootstrap \
|
||||||
@ -106,7 +104,7 @@ cd ../gcc-build</userinput></screen>
|
|||||||
|
|
||||||
<para>To receive a summary of the test suite results, run:</para>
|
<para>To receive a summary of the test suite results, run:</para>
|
||||||
|
|
||||||
<screen><userinput remap="test">../gcc-&gcc-version;/contrib/test_summary</userinput></screen>
|
<screen><userinput remap="test">../contrib/test_summary</userinput></screen>
|
||||||
|
|
||||||
<para>For only the summaries, pipe the output through
|
<para>For only the summaries, pipe the output through
|
||||||
<userinput>grep -A7 Summ</userinput>.</para>
|
<userinput>grep -A7 Summ</userinput>.</para>
|
||||||
|
@ -77,16 +77,15 @@
|
|||||||
|
|
||||||
<screen><userinput remap="pre">patch -Np1 -i ../&glibc-largefile-patch;</userinput></screen>
|
<screen><userinput remap="pre">patch -Np1 -i ../&glibc-largefile-patch;</userinput></screen>
|
||||||
|
|
||||||
<para>The Glibc documentation recommends building Glibc outside of the source
|
<para>The Glibc documentation recommends building Glibc
|
||||||
directory in a dedicated build directory:</para>
|
in a dedicated build directory:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir -v ../glibc-build
|
<screen><userinput remap="pre">mkdir -v build
|
||||||
cd ../glibc-build</userinput></screen>
|
cd build</userinput></screen>
|
||||||
|
|
||||||
<para>Prepare Glibc for compilation:</para>
|
<para>Prepare Glibc for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">../glibc-&glibc-version;/configure \
|
<screen><userinput remap="configure">../configure --prefix=/usr \
|
||||||
--prefix=/usr \
|
|
||||||
--disable-profile \
|
--disable-profile \
|
||||||
--enable-kernel=&min-kernel; \
|
--enable-kernel=&min-kernel; \
|
||||||
--enable-obsolete-rpc</userinput></screen>
|
--enable-obsolete-rpc</userinput></screen>
|
||||||
@ -170,7 +169,7 @@ cd ../glibc-build</userinput></screen>
|
|||||||
<para>Install the configuration file and runtime directory for
|
<para>Install the configuration file and runtime directory for
|
||||||
<command>nscd</command>:</para>
|
<command>nscd</command>:</para>
|
||||||
|
|
||||||
<screen><userinput remap="install">cp -v ../glibc-&glibc-version;/nscd/nscd.conf /etc/nscd.conf
|
<screen><userinput remap="install">cp -v ../nscd/nscd.conf /etc/nscd.conf
|
||||||
mkdir -pv /var/cache/nscd</userinput></screen>
|
mkdir -pv /var/cache/nscd</userinput></screen>
|
||||||
|
|
||||||
<para>The locales that can make the system respond in a different language
|
<para>The locales that can make the system respond in a different language
|
||||||
@ -274,7 +273,7 @@ EOF</userinput></screen>
|
|||||||
<title>Adding time zone data</title>
|
<title>Adding time zone data</title>
|
||||||
|
|
||||||
<para>Install and set up the time zone data with the following:</para>
|
<para>Install and set up the time zone data with the following:</para>
|
||||||
<screen><userinput>tar -xf ../tzdata&tzdata-version;.tar.gz
|
<screen><userinput>tar -xf ../../tzdata&tzdata-version;.tar.gz
|
||||||
|
|
||||||
ZONEINFO=/usr/share/zoneinfo
|
ZONEINFO=/usr/share/zoneinfo
|
||||||
mkdir -pv $ZONEINFO/{posix,right}
|
mkdir -pv $ZONEINFO/{posix,right}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!ENTITY version "SVN-20160124">
|
<!ENTITY version "SVN-20160127">
|
||||||
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;. Change to x.y for release
|
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;. Change to x.y for release
|
||||||
but not -rc releases -->
|
but not -rc releases -->
|
||||||
<!ENTITY releasedate "January 24, 2016">
|
<!ENTITY releasedate "January 27, 2016">
|
||||||
<!ENTITY copyrightdate "1999-2016"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2016"><!-- jhalfs needs a literal dash, not – -->
|
||||||
<!ENTITY milestone "7.9">
|
<!ENTITY milestone "7.9">
|
||||||
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
||||||
|
Loading…
Reference in New Issue
Block a user