summaryrefslogtreecommitdiff
path: root/gnuradio-core/src
diff options
context:
space:
mode:
authorJosh Blum2011-09-27 11:56:52 -0700
committerJosh Blum2011-09-27 11:56:52 -0700
commit9e73c4e8372bc581d686d5e82a808894d41523ec (patch)
treef576d8ec2bc19babf0c6f6bfd003186f46117433 /gnuradio-core/src
parent2ccb1266791d0e7c6a58ccd56df1b00647d52b46 (diff)
downloadgnuradio-9e73c4e8372bc581d686d5e82a808894d41523ec.tar.gz
gnuradio-9e73c4e8372bc581d686d5e82a808894d41523ec.tar.bz2
gnuradio-9e73c4e8372bc581d686d5e82a808894d41523ec.zip
core: add link with librt for shm_* calls
Diffstat (limited to 'gnuradio-core/src')
-rw-r--r--gnuradio-core/src/lib/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/CMakeLists.txt b/gnuradio-core/src/lib/CMakeLists.txt
index 17b69d53f..c3ce5a145 100644
--- a/gnuradio-core/src/lib/CMakeLists.txt
+++ b/gnuradio-core/src/lib/CMakeLists.txt
@@ -63,6 +63,11 @@ LIST(APPEND gnuradio_core_libs
${FFTW3F_LIBRARIES}
)
+#need to link with librt on ubuntu 11.10 for shm_*
+IF(LINUX)
+ LIST(APPEND gnuradio_core_libs rt)
+ENDIF()
+
ADD_LIBRARY(gnuradio-core SHARED ${gnuradio_core_sources})
TARGET_LINK_LIBRARIES(gnuradio-core ${gnuradio_core_libs})
SET_TARGET_PROPERTIES(gnuradio-core PROPERTIES DEFINE_SYMBOL "gnuradio_core_EXPORTS")