From: Bernd Kuhls Date: Wed, 5 Jul 2017 17:23:01 +0000 (+0200) Subject: package/gnuradio: link with libatomic when needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83ce8070b4f11c833026771f72916b423c444eb7;p=buildroot.git package/gnuradio: link with libatomic when needed Fixes http://autobuild.buildroot.net/results/528/52825918bf65b23241cd68d99513350703469294/ Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- 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