#!/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}"
src_config()
{
mkdir -v build
cd build
../libstdc++-v3/configure \
CXXFLAGS="-g -O2 -D_GNU_SOURCE" \
--prefix=${PREFIX} \
--disable-multilib \
--disable-nls \
--host=$(uname -m)-lfs-linux-gnu \
--disable-libstdcxx-pch
}
src_compile()
{
make ${MAKEOPTS}
}
src_install()
{
make install ${MAKEOPTS} DESTDIR=${D}
}
- url.lfs:
- url.lfs.stage1: https://linuxfromscratch.org/lfs/view/10.0/chapter07/gcc-libstdc++-pass2.html