eth0s/toolchain/04-glibc

37 lines
876 B
Text
Raw Normal View History

name=glibc
2021-04-18 08:19:42 +08:00
version=2.33
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 \
2020-06-28 23:38:04 +08:00
--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 -
2018-12-01 00:12:45 +08:00
mkdir -v build
cd build
../configure \
--prefix=/tools \
--host=$LFS_TGT \
--build=$(../scripts/config.guess) \
--enable-kernel=3.2 \
--with-headers=/tools/include
2018-12-01 00:12:45 +08:00
make
make install
}