eth0s/toolchain/06-binutils-pass2
2020-06-12 16:42:33 +08:00

29 lines
636 B
Text
Executable file

name=binutils
version=2.34
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
}