r-lib / pingr

ICMP and TCP ping and related tools
http://r-lib.github.io/pingr/
Other
34 stars 8 forks source link

Build fails on FreeBSD since `-lresolv` is not needed #21

Open yzgyyang opened 2 years ago

yzgyyang commented 2 years ago

-lresolv is not needed for FreeBSD since it is in libc. So, https://github.com/r-lib/pingr/blob/bfe03f4c34945c50a856a7c4844f642fb310193d/src/Makevars#L1 will raise an error during build. To fix it, just an empty PKG_LIBS would work, but I do not know Makevars enough to have a platform-specific fix there.