25 lines
548 B
Text
Executable file
25 lines
548 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
|
|
make -C ld LIB_PATH=/usr/lib:/lib:/usr/lib32
|
|
cp -v ld/ld-new /tools/bin
|
|
}
|