From 2444debd42135f83701b2adca11536aa02d5ece4 Mon Sep 17 00:00:00 2001
From: "A. Maitland Bottoms" <bottoms@debian.org>
Date: Fri, 14 Jan 2022 18:07:36 -0500
Subject: [PATCH 3/3] build on hurd

Fixup CMake linking logic.
---
 gnuradio-runtime/lib/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/gnuradio-runtime/lib/CMakeLists.txt
+++ b/gnuradio-runtime/lib/CMakeLists.txt
@@ -287,8 +287,8 @@
     target_compile_definitions(gnuradio-runtime PUBLIC -DWIN32_LEAN_AND_MEAN)
 endif(WIN32)
 
-#need to link with librt on ubuntu 11.10 for shm_*
-if((LINUX) OR (CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD"))
+#need to link with librt on ubuntu 11.10 and Hurd for shm_*
+if((LINUX) OR (CMAKE_SYSTEM_NAME MATCHES "^(kFreeBSD|GNU)$"))
     target_link_libraries(gnuradio-runtime PUBLIC rt)
 endif()
 
