summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2017-07-05 19:23:01 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-22 23:30:33 +0200
commit83ce8070b4f11c833026771f72916b423c444eb7 (patch)
treece25609dea44fb688b8cae7c341df128c0e92d65
parent2577484da9859f25c3baa15a84bd0a60306931db (diff)
downloadbuildroot-83ce8070b4f11c833026771f72916b423c444eb7.tar.gz
buildroot-83ce8070b4f11c833026771f72916b423c444eb7.zip
package/gnuradio: link with libatomic when needed
Fixes http://autobuild.buildroot.net/results/528/52825918bf65b23241cd68d99513350703469294/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/gnuradio/gnuradio.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/gnuradio/gnuradio.mk b/package/gnuradio/gnuradio.mk
index 6407dd4f80..a55c116118 100644
--- a/package/gnuradio/gnuradio.mk
+++ b/package/gnuradio/gnuradio.mk
@@ -30,6 +30,10 @@ GNURADIO_CONF_OPTS = \
# compile time.
GNURADIO_INSTALL_STAGING = YES
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+GNURADIO_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
+endif
+
# Yes, this is silly, because -march is already known by the compiler
# with the internal toolchain, and passed by the external wrapper for
# external toolchains. Nonetheless, gnuradio does some matching on the
OpenPOWER on IntegriCloud