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

27 lines
556 B
Text
Executable file

name=binutils
version=2.33.1
source=(http://ftp.gnu.org/gnu/binutils/binutils-$version.tar.xz)
build() {
if [ "$MULTILIB" = "yes" ]; then
multilibopt="--with-lib-path=/tools/lib:/tools/lib32"
else
multilibopt="--with-lib-path=/tools/lib"
fi
cd $name-$version
mkdir -v build
cd build
../configure $multilibopt \
--prefix=/tools \
--with-sysroot=$LFS \
--target=$LFS_TGT \
--disable-nls \
--disable-werror
make
mkdir -v /tools/lib && ln -sv lib /tools/lib64
[ "$MULTILIB" = "yes" ] && mkdir -p /tools/lib32
make install
}