aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-02-15 23:01:10 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-03-15 16:22:12 +0100
commit9fdb9492039632585e38234b6ee7367197f574ab (patch)
treee8269c4620496cf2e61ebc1765b49df88aedfefa
parentf4d6d1f83de0be8b1e2e50c970b6fd7817df5cfd (diff)
downloadbuildroot-9fdb9492039632585e38234b6ee7367197f574ab.tar.gz
buildroot-9fdb9492039632585e38234b6ee7367197f574ab.tar.bz2
package/botan: link with libatomic when needed
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 <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commit ae7ba64501a7f2bb80dd5b2ea99fae747cc8b1eb) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/botan/botan.mk7
1 files changed, 7 insertions, 0 deletions
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 \