1.5. tmp libstdc++-12.2.0
#!/bin/sh
# Copyright © 1999-2022 Gerard Beekmans
# Copyright © 2017-2022 Random Crew
# Distributed under the terms of MIT License.
MY_P="gcc-${PV}"
MY_PD="${MY_P}"
Configuration
src_config()
{
mkdir -v build
cd build
../libstdc++-v3/configure \
--host=${LFS_TGT} \
--build=$(../config.guess) \
--prefix=${PREFIX} \
--disable-multilib \
--disable-nls \
--disable-libstdcxx-pch \
--with-gxx-include-dir=${PASS1PREFIX}/$LFS_TGT/include/c++/${PV}
}
Compilation
src_compile()
{
make ${MAKEOPTS}
}
Installation
.la files are not removed manually, because they are automatically deleted after src_install function.
src_install()
{
make install ${MAKEOPTS} DESTDIR=${D}
}
Links