修改configure
搜索gcc-ar,修改为:
# ar and ranlib doesn't load the LTO plugin by default, prefer the gcc-prefixed wrappers which does.
#if ${cross_prefix}gcc-ar --version >/dev/null 2>&1; then
# AR="${AR-${cross_prefix}gcc-ar}"
#else
AR="${AR-${cross_prefix}ar}"
#fi
#if ${cross_prefix}gcc-ranlib --version >/dev/null 2>&1; then
# RANLIB="${RANLIB-${cross_prefix}gcc-ranlib}"
#else
RANLIB="${RANLIB-${cross_prefix}ranlib}"
#fi