eth0s/toolchain/04-glibc
2022-04-09 08:19:46 +08:00

36 lines
876 B
Text
Executable file

name=glibc
version=2.35
source="http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz"
build() {
cd $name-$version
mkdir -v build32
cd build32
echo slibdir=/tools/lib32 > configparms
../configure \
--prefix=/tools \
--host=$LFS_TGT32 \
--build=$(../scripts/config.guess) \
--libdir=/tools/lib32 \
--enable-kernel=3.2 \
--with-headers=/tools/include \
CC="$LFS_TGT-gcc -m32" \
CXX="$LFS_TGT-g++ -m32"
make
make install
cd -
mkdir -v build
cd build
../configure \
--prefix=/tools \
--host=$LFS_TGT \
--build=$(../scripts/config.guess) \
--enable-kernel=3.2 \
--with-headers=/tools/include
make
make install
}