Modify external toolchain scripts `PREFIX-ar and `PREFIX-ranlib
to handle object files compiled with LTO enabled; and simplify
external toolchain scripts `PREFIX-gcc-ar and `PREFIX-gcc-ranlib
to avoid failing to create static library archives.
Signed-off-by: Ye Holmes
---
Using external prebuilt
From: Ye Holmes
The external toolchain scripts generated for ar/gcc-ar/ranlib/gcc-ranlib
do not work well for latest prebuilt GNU toolchain downloaded from ARM:
1. aarch64-none-linux-gnu-ar and aarch64-none-linux-gnu-ranlib cannot
generate correct static libraries for a number of packages with Li