allocscc takes very long (specifically alloctypes, allocsites, dwarftypes, extrasyms, etc.) when statically linking against big libraries (like openssl). This happens in libwebsocket configuration-time when the configuration script tries to detect a dozen of features in openssl (e.g. testing whether a function exists in openssl by compiling a small test C program that statically-links against openssl). As a result, configuring libwebsocket takes a couple of hours (which would normally take a minute or two).
It seems like on each feature test, the entire openssl library is redundantly processed by alloctypes, dwarftypes, etc. Is there a way to somehow cache the result to speed up?