Hi,
In this chapter we are going to discuss on compiling and installing Libstdc++, this is part of the gcc-10.2.0 package.
Note :
- Please check the version of the package when you compile and install, at the time of writing the package was at version 10.2.0
- You should be logged in as lfs user, when you perform the actions described here.
- Change directory to the sources folder (/mnt/lfs/sources)
- Please check http://linuxfromscratch.org/lfs/view/stable/chapter05/gcc-libstdc++-pass1.html for more details.
Remove the folder gcc-10.2.0 in case if you still have in the sources directory and extract it again.
$ tar -xvf gcc-10.2.0.tar.xz
Change directory to gcc-10.2.0
$ cd gcc-10.2.0
As per practice, create and change to build directory.
$ mkdir -v build
$ cd build
Preparing Libstdc++ for compiling
$ ../libstdc++-v3/configure \
--host=$LFS_TGT \
--build=$(../config.guess) \
--prefix=/usr \
--disable-multilib \
--disable-nls \
--disable-libstdcxx-pch \
--with-gxx-include-dir=/tools/$LFS_TGT/include/c++/10.2.0
Compiling Libstdc++
$ make -j4
Installing Libstdc++
$ make DESTDIR=$LFS install
No comments:
Post a Comment