I was actually thinking of the order ${LLVM_DEFAULT_TARGET_TRIPLE}-ld.gold ld.gold ${LLVM_DEFAULT_TARGET_TRIPLE}-ld ld That way we give preference to programs that explicitly have "gold" in the name. Cheers, Rafael