Skip to contentSkip to conversation

package/gnuradio: link with libatomic when needed

PATCH New Bernd Kuhls 2 participants 2 messages Jul 5, 2017 – Jul 22, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 package/gnuradio: link with libatomic when needed

Fixes
http://autobuild.buildroot.net/results/528/52825918bf65b23241cd68d99513350703469294/

---
v3: use CMAKE_EXE_LINKER_FLAGS instead of CMAKE_C_FLAGS (Thomas)
v2: fix typo CMAKE_CXX_FLAGS -> CMAKE_C_FLAGS (Thomas)

 package/gnuradio/gnuradio.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/gnuradio/gnuradio.mk +4 -0
index 6407dd4f8..a55c11611 100644
@@ -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
Signature · 1 line
2.11.0
#1 lore raw

PATCH v3 1/1 package/gnuradio: link with libatomic when needed

Hello,

Quoted 7 lines · Bernd Kuhls

Fixes
http://autobuild.buildroot.net/results/528/52825918bf65b23241cd68d99513350703469294/

---
v3: use CMAKE_EXE_LINKER_FLAGS instead of CMAKE_C_FLAGS (Thomas)
v2: fix typo CMAKE_CXX_FLAGS -> CMAKE_C_FLAGS (Thomas)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com