This diff for FreeBSD 12.0-ALPHA4 aims to enable the following FreeBSD build options:
WITHOUT_INET
WITHOUT_INET_SUPPORT
WITHOUT_INET6
WITHOUT_INET6_SUPPORT
WITHOUT_CRYPT
WITHOUT_OPENSSL
WITHOUT_DYNAMICROOT
WITHOUT_FILE
I have tested it with moderately random mixes of each (i.e. WITHOUT_INET and WITHOUT_INET6_SUPPORT) plus clean builds.
Known shortcoming: tests/sys/Makefile should really exclude only /usr/src/tests/sys/geom/class/eli but doing so appears to break the pre-build the clean up.
Subject matter experts please review and test it.
Why? I have experimented with "build options" since I discovered FreeBSD Jail around 2003 with stunningly frustrating results because of their lack of maintenance. Please test all build options you touch. Please.