Sunday, December 27, 2020

Chapter 16 : Compile and Install Libstdc++ - Compiling a Cross-Toolchain

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)
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

Changing the password of the root user of mysql in Ubuntu

Hi all,    In this post we are going to see how to reset the password of root user in mysql As we all know the root user of mysql is some...