It’s a bit silly that the library packs in its own sha256 even when the user has their own and on small devices it’s a costly waste of space. In places like Bitcoin Core the environment has a fast SIMD or SHA-NI sha256, … it actually makes a measurable difference in signing time to use SHA-NI.
It would be nice if there were some -Dlibsecp2561k_sha256init=x -Dlibsecp2561k_sha256update=y -Dlibsecp2561k_sha256final=z settings that could be used to compile time substitute in another library and leave the internal one out.