mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
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 ae7ba64501)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
f4d6d1f83d
commit
9fdb949203
@@ -17,9 +17,16 @@ BOTAN_CONF_OPTS = \
|
|||||||
--os=linux \
|
--os=linux \
|
||||||
--cc=gcc \
|
--cc=gcc \
|
||||||
--cc-bin="$(TARGET_CXX)" \
|
--cc-bin="$(TARGET_CXX)" \
|
||||||
|
--ldflags="$(BOTAN_LDFLAGS)" \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--without-documentation
|
--without-documentation
|
||||||
|
|
||||||
|
BOTAN_LDFLAGS = $(TARGET_LDFLAGS)
|
||||||
|
|
||||||
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||||
|
BOTAN_LDFLAGS += -latomic
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_SHARED_LIBS),y)
|
ifeq ($(BR2_SHARED_LIBS),y)
|
||||||
BOTAN_CONF_OPTS += \
|
BOTAN_CONF_OPTS += \
|
||||||
--disable-static-library \
|
--disable-static-library \
|
||||||
|
|||||||
Reference in New Issue
Block a user