2016-03-20 17:29:18 +01:00
|
|
|
version=2.23
|
2016-02-24 01:27:23 +01:00
|
|
|
source=(\
|
|
|
|
http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz
|
|
|
|
)
|
|
|
|
|
|
|
|
build()
|
|
|
|
{
|
|
|
|
cd glibc-$version
|
|
|
|
|
|
|
|
mkdir -v build
|
|
|
|
cd build
|
|
|
|
|
|
|
|
|
|
|
|
../configure \
|
|
|
|
--prefix=/tools \
|
2016-03-20 17:29:18 +01:00
|
|
|
--host=$LFS_TARGET \
|
2016-02-24 01:27:23 +01:00
|
|
|
--build=$(../scripts/config.guess) \
|
|
|
|
--disable-profile \
|
|
|
|
--enable-kernel=2.6.32 \
|
|
|
|
--enable-obsolete-rpc \
|
|
|
|
--with-headers=/tools/include \
|
|
|
|
libc_cv_forced_unwind=yes \
|
|
|
|
libc_cv_ctors_header=yes \
|
|
|
|
libc_cv_c_cleanup=yes
|
|
|
|
|
|
|
|
make
|
|
|
|
# Evite le fail de make install
|
|
|
|
rm -rf /tools/share/info/dir
|
|
|
|
|
|
|
|
make install
|
|
|
|
|
|
|
|
echo 'main(){}' > dummy.c
|
2016-03-20 17:29:18 +01:00
|
|
|
$LFS_TARGET-gcc dummy.c
|
2016-02-24 01:27:23 +01:00
|
|
|
echo $(readelf -l a.out | grep ': /tools')
|
|
|
|
rm -v dummy.c a.out
|
2016-03-20 17:29:18 +01:00
|
|
|
}
|