hi!
Please review:
https://code.illumos.org/c/illumos-gate/+/3782
lex is build tool, and should be built in tools as well. This also means, the build host would not need to have its own.
thanks,
toomas