h2o / picotls

TLS 1.3 implementation in C (master supports RFC8446 as well as draft-26, -27, -28)
536 stars 140 forks source link

dtrace support for FreeBSD #282

Open dch opened 4 years ago

dch commented 4 years ago

h2o relies on picotls for dtrace detection in a CMake macro and https://github.com/h2o/picotls/pull/241 mentions a possible object relinking step that might make this possible. Can you suggest anything to help implement this for picotls & h2o on FreeBSD?

kazuho commented 4 years ago

Thank you for looking into the possibility.

IIRC, as stated on that issue, we need to pre-link the object files. MySQL used to do that (they recently dropped dtrace support, but...), and the code can be found at places like https://github.com/twitter-forks/mysql/blob/master/cmake/dtrace.cmake#L103-L119. I vaguely recall that it can be done slightly simpler, but anyways I think checking what MySQL does (did) would be a good starting point.