Fix world build in NO_ALTBINUTILS edge case
commit0fcba03f4d69f19be01271321459634acdbd0cb3
authorJohn Marino <draco@marino.st>
Tue, 20 Dec 2016 18:32:53 +0000 (20 12:32 -0600)
committerJohn Marino <draco@marino.st>
Tue, 20 Dec 2016 18:32:53 +0000 (20 12:32 -0600)
tree193def67abf1d0ba6ed6e059d36cea6e588851df
parenta4413ab2ffdb938e51b640e3d1fe41228304b18a
Fix world build in NO_ALTBINUTILS edge case

In the case that the machine has been updated within 30 days but with
NO_ALTBINUTILS set, the world build fails.  This is due because the
logic to fallback to earlier binutils versions fails due to empty
directories that are installed regardless of the NO_ALBINUTILS setting.
The logic was updated to search for binutils programs rather than
directories.  In the edge case, the oldest version of binutils on the
system is used to build the native versions during the early build phases.
share/mk/bsd.cpu.mk