Skip to content
Snippets Groups Projects
Commit fb65e6e3 authored by Adrian Ratiu's avatar Adrian Ratiu Committed by Matthew Pickering
Browse files

fp_prog_ar.m4: take AR var into consideration

In ChromeOS and Gentoo we want the ability to use LLVM ar
instead of GNU ar even though both are installed, thus we
pass (for eg) AR=llvm-ar to configure.

Unfortunately GNU ar always gets picked regardless of the
AR setting because the check does not consider the AR var
when setting fp_prog_ar, hence this fix.
parent a952dd80
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,8 @@ if test -z "$fp_prog_ar"; then
fp_prog_ar=$(cygpath -m $fp_prog_ar)
fi
else
AC_CHECK_TARGET_TOOL([fp_prog_ar], [ar])
AC_CHECK_TARGET_TOOL([AR], [ar])
fp_prog_ar="$AR"
fi
fi
if test -z "$fp_prog_ar"; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment