修改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
本文介绍如何修改configure脚本来优先使用GCC提供的ar和ranlib工具,这些工具默认加载LTO插件,适用于交叉编译环境。通过检查${cross_prefix}
1840

被折叠的 条评论
为什么被折叠?



