Small patch to fix building librtlsdr on OpenBSD

Brian Waters brian at
Fri Nov 8 22:49:39 UTC 2019

Looks like I mistakenly included the patch as an attachment, so it may not have gone through. Here it is:

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 07d64ab..015fd48 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -125,7 +125,7 @@ if(UNIX)
 target_link_libraries(rtl_fm m)
 target_link_libraries(rtl_adsb m)
 target_link_libraries(rtl_power m)
     target_link_libraries(rtl_test m)
     target_link_libraries(rtl_test m rt)


Brian M. Waters
brian at

On Tue, Nov 5, 2019, at 5:05 PM, Brian Waters wrote:
> Gets rid of librt, which doesn't exist on OpenBSD. The version of 
> librtlsdr in the OpenBSD ports tree is extremely old (~2013), so this 
> should help some users.
> Tested against tag 0.6.0, but it should apply just fine to HEAD.
> Thanks,
> Brian Waters
> -- 
> Brian M. Waters
> brian at
> Attachments:
> * openbsd.patch

More information about the osmocom-sdr mailing list