diff --git a/pkgs/binutils/binutils-build.sh b/pkgs/binutils/binutils-build.sh index a89f10bce16e..04a1ba4e7084 100755 --- a/pkgs/binutils/binutils-build.sh +++ b/pkgs/binutils/binutils-build.sh @@ -4,6 +4,12 @@ tar xvfj $src || exit 1 cd binutils-* || exit 1 + +# Clear the default library search path. +echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt || exit 1 + ./configure --prefix=$out || exit 1 make || exit 1 make install || exit 1 + +strip -S $out/lib/*.a || exit 1