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