configure: Use IS_LEGACY_GCC instead of manually comparing GCC versions.

This commit is contained in:
Augustin Cavalier 2021-12-07 14:22:54 -05:00
parent f0213b4407
commit dbaef85011

9
configure vendored
View File

@ -1039,12 +1039,9 @@ else
get_build_tool_path ELFEDIT_$targetArch elfedit
elif [ -n "$crossToolsPrefix" ]; then
get_build_tool_path LD_$targetArch ${crossToolsPrefix}ld
case `get_variable HAIKU_GCC_RAW_VERSION_$targetArch` in
4.*|5.*|6.*|7.*|8.*)
get_build_tool_path ELFEDIT_$targetArch \
${crossToolsPrefix}elfedit
;;
esac
if [ `get_variable HAIKU_CC_IS_LEGACY_GCC_$targetArch` -eq 0 ]; then
get_build_tool_path ELFEDIT_$targetArch ${crossToolsPrefix}elfedit
fi
fi
if [ -n "$crossToolsPrefix" ]; then
get_build_tool_path AR_$targetArch ${crossToolsPrefix}ar