eth0s/toolchain/06-binutils-pass2

26 lines
548 B
Text
Raw Normal View History

name=binutils
2022-04-09 08:19:46 +08:00
version=2.38
2021-04-18 08:19:42 +08:00
source="http://ftp.gnu.org/gnu/binutils/binutils-$version.tar.xz"
2018-12-01 00:12:45 +08:00
build() {
cd $name-$version
2018-12-01 00:12:45 +08:00
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
2018-12-01 00:12:45 +08:00
make install
make -C ld clean
2020-06-28 23:38:04 +08:00
make -C ld LIB_PATH=/usr/lib:/lib:/usr/lib32
2018-12-01 00:12:45 +08:00
cp -v ld/ld-new /tools/bin
}