package/log4qt: link with latomic if needed
authorBartosz Bilas <b.bilas@grinn-global.com>
Wed, 5 May 2021 18:10:12 +0000 (20:10 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 11 May 2021 11:20:57 +0000 (13:20 +0200)
Fixes:
 - http://autobuild.buildroot.net/results/fb5/fb52f5366a25230606149f44dc46f86f0273a680/

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/log4qt/log4qt.mk

index b01d9c6611e4389331d26a7af3cc4d4fa2780285..0594427cf7538b72d5871c46a16df50a65ed1065 100644 (file)
@@ -11,6 +11,11 @@ LOG4QT_LICENSE = Apache-2.0
 LOG4QT_LICENSE_FILES = LICENSE
 LOG4QT_INSTALL_STAGING = YES
 
+# Uses __atomic_fetch_add_4
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+LOG4QT_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
+endif
+
 ifeq ($(BR2_PACKAGE_QT5BASE_SQLITE_QT)$(BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM),y)
 LOG4QT_CONF_OPTS += -DBUILD_WITH_DB_LOGGING=ON
 else