digitalocean / prometheus-client-c

A Prometheus Client in C
Other
160 stars 79 forks source link

Build static library #51

Open lavigne958 opened 3 years ago

lavigne958 commented 3 years ago

It would be useful to introduce a new option in the CMake project to be able to build a static version of the library (prom and/or promhttp).

I will look into it see what I can do and If this works I will open a PR to propose my work (If manage to success)

lavigne958 commented 3 years ago

Any update on that option please ? not doing it ?

xmcqueen commented 3 years ago

I wanted that too. Did you get anywhere with your investigation?

xmcqueen commented 3 years ago

I just looked at it. Its feasible, but bigger than you'd guess. This repo has vendored code. You'll have to check and probably update the vendored code to build static.