DaanDeMeyer / reproc

A cross-platform (C99/C++11) process library
MIT License
552 stars 65 forks source link

Fix librt being linked unnecessarily #84

Closed lrw04 closed 2 years ago

lrw04 commented 2 years ago

clock_gettime does not need librt on many platforms, except Linux. The commit makes librt only linked on Linux, solving #83.

The solution I proposed on #83 seemed to not work on Ubuntu, and it is fixed in my branch.