From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sun, 24 Feb 2019 22:06:15 +0100 Subject: [Buildroot] [git commit] package/botan: link with libatomic when needed Message-ID: <20190224210428.7FD15836D1@busybox.osuosl.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net commit: https://git.buildroot.net/buildroot/commit/?id=ae7ba64501a7f2bb80dd5b2ea99fae747cc8b1eb branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master On some architectures, atomic built-ins 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/a442734c570e4a02854014d831ba3aab9f592430 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/botan/botan.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/botan/botan.mk b/package/botan/botan.mk index e07b786c85..a96a12178b 100644 --- a/package/botan/botan.mk +++ b/package/botan/botan.mk @@ -17,9 +17,16 @@ BOTAN_CONF_OPTS = \ --os=linux \ --cc=gcc \ --cc-bin="$(TARGET_CXX)" \ + --ldflags="$(BOTAN_LDFLAGS)" \ --prefix=/usr \ --without-documentation +BOTAN_LDFLAGS = $(TARGET_LDFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +BOTAN_LDFLAGS += -latomic +endif + ifeq ($(BR2_SHARED_LIBS),y) BOTAN_CONF_OPTS += \ --disable-static-library \