26 lines
579 B
Bash
26 lines
579 B
Bash
|
|
cd "$SOURCES" && tar xf binutils-$BINUTILS_VERSION.tar.xz && cd binutils-$BINUTILS_VERSION
|
|
|
|
sed '6031s/$add_dir//' -i ltmain.sh
|
|
|
|
mkdir -p build && cd build
|
|
|
|
../configure \
|
|
--prefix=/usr \
|
|
--build=$(../config.guess) \
|
|
--host=$TARGET \
|
|
--disable-nls \
|
|
--enable-shared \
|
|
--enable-gprofng=no \
|
|
--disable-werror \
|
|
--enable-64-bit-bfd \
|
|
--enable-new-dtags \
|
|
--enable-default-hash-style=gnu \
|
|
--silent \
|
|
--quiet
|
|
|
|
make && make DESTDIR="$SYSROOT" install
|
|
|
|
rm "$SYSROOT"/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes,sframe}.{a,la}
|
|
|
|
cd "$SOURCES" && rm -rf binutils-$BINUTILS_VERSION |