summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-03-24 09:47:42 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-03-24 09:47:42 +0100
commit32dab81b201b54bee4d58bfbab4d2884de245193 (patch)
tree2acc80f933eff3a35d5913b4e0ccde3c2edc0dc4 /Makefile.am
parentd4331e326b3bdf553db106b83fc5b40d059f6581 (diff)
downloaddabmod-32dab81b201b54bee4d58bfbab4d2884de245193.tar.gz
dabmod-32dab81b201b54bee4d58bfbab4d2884de245193.tar.bz2
dabmod-32dab81b201b54bee4d58bfbab4d2884de245193.zip
Link against Boost::Thread when UHD is enabled
This is necessary on some systems, for a reason that is not entirely clear. I believe UHD's pkg-config file should instruct us to link against boost-thread if necessary, but it doesn't.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 55fdbc9..64e8c78 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,8 +38,8 @@ bin_PROGRAMS = odr-dabmod
odr_dabmod_CFLAGS = -Wall -Isrc -Ilib \
$(GITVERSION_FLAGS)
odr_dabmod_CXXFLAGS = -Wall -Isrc -Ilib -std=c++11 \
- $(GITVERSION_FLAGS)
-odr_dabmod_LDADD =
+ $(GITVERSION_FLAGS) $(BOOST_CPPFLAGS)
+odr_dabmod_LDADD = $(BOOST_LDFLAGS) $(BOOST_THREAD_LIB)
odr_dabmod_SOURCES = src/DabMod.cpp \
src/PcDebug.h \
src/DabModulator.cpp \
@@ -169,6 +169,6 @@ odr_dabmod_SOURCES += \
src/TII.cpp \
src/TII.h
-odr_dabmod_LDADD += $(UHD_LIBS) $(LIMESDR_LIBS)
+odr_dabmod_LDADD += $(UHD_LIBS) $(LIMESDR_LIBS) $(ADDITIONAL_UHD_LIBS)
endif