package/i2pd: link with libatomic when needed
PATCH 1/1 package/i2pd: link with libatomic when needed
On some architectures, atomic binutils are provided by the libatomic library from gcc. Linking with libatomic is therefore necessary, otherwise the build fails with:
sparc-buildroot-linux-uclibc/sysroot/lib/libatomic.so.1: error adding symbols: DSO missing from command line
This is often for example the case on sparcv8 32 bit.
Fixes:
- http://autobuild.buildroot.org/results/515160349b11f06a090f3e13992e30da9a402c17
--- package/i2pd/i2pd.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/i2pd/i2pd.mk +4 -0
@@ -21,6 +21,10 @@ I2PD_CONF_OPTS += -DWITH_GUI=OFF # build failure when cross-compiling. I2PD_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +I2PD_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -latomic" +endif + ifeq ($(BR2_STATIC_LIBS),y) I2PD_CONF_OPTS += -DWITH_STATIC=ON else
Signature · 1 line
2.14.1
Thomas Petazzoni
AppliedPATCH 1/1 package/i2pd: link with libatomic when needed
Quoted 8 lines · On Fri, 15 Feb 2019 22:05:59 +0100 Fabrice Fontaine…
On some architectures, atomic binutils are provided by the libatomic library from gcc. Linking with libatomic is therefore necessary, otherwise the build fails with:
sparc-buildroot-linux-uclibc/sysroot/lib/libatomic.so.1: error adding symbols: DSO missing from command line
This is often for example the case on sparcv8 32 bit.
Quoted 7 lines
Fixes:
- http://autobuild.buildroot.org/results/515160349b11f06a090f3e13992e30da9a402c17Signed-off-by Fabrice Fontaine <[email protected]>--- package/i2pd/i2pd.mk | 4 ++++ 1 file changed, 4 insertions(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com