eth0s/toolchain/06-binutils-pass2
2019-10-20 06:25:03 +08:00

29 lines
638 B
Text
Executable file

name=binutils
version=2.33.1
source=(http://ftp.gnu.org/gnu/binutils/binutils-$version.tar.xz)
build() {
cd $name-$version
mkdir -v build
cd build
CC=$LFS_TGT-gcc \
AR=$LFS_TGT-ar \
RANLIB=$LFS_TGT-ranlib \
../configure \
--prefix=/tools \
--disable-nls \
--disable-werror \
--with-lib-path=/tools/lib \
--with-sysroot
make
make install
make -C ld clean
if [ "$MULTILIB" = "yes" ]; then
make -C ld LIB_PATH=/usr/lib:/lib:/usr/lib32:/lib32
else
make -C ld LIB_PATH=/usr/lib:/lib
fi
cp -v ld/ld-new /tools/bin
}