This patch makes sure that we are using correct target specific ar and objcopy executables.
I have added logic to extract ar and objcopy from CC compiler name in case of arm and aarch64 targets.
In case of android this is overidden by android specific logic implemented in makefile.rules.