From patchwork Wed May 5 18:10:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Bilas X-Patchwork-Id: 1474514 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fb4WZ4xKfz9s1l for ; Thu, 6 May 2021 04:10:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id E1E3A402CE; Wed, 5 May 2021 18:10:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VqnNsLuxt3Oh; Wed, 5 May 2021 18:10:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 5319A4022A; Wed, 5 May 2021 18:10:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id BA1F81BF844 for ; Wed, 5 May 2021 18:10:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A3734607CC for ; Wed, 5 May 2021 18:10:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eC6ra5hfLevn for ; Wed, 5 May 2021 18:10:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mail.grinn-global.com (mail.grinn-global.com [77.55.128.204]) by smtp3.osuosl.org (Postfix) with ESMTPS id 5E162607E0 for ; Wed, 5 May 2021 18:10:19 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV (20) Received: from bartekk-pc.lan (host-81-161-202-62.oxylion.net.pl [81.161.202.62]) by server220076.nazwa.pl (Postfix) with ESMTP id 0FF5313D071; Wed, 5 May 2021 20:10:16 +0200 (CEST) From: Bartosz Bilas To: buildroot@buildroot.org Date: Wed, 5 May 2021 20:10:12 +0200 Message-Id: <20210505181012.477189-1-b.bilas@grinn-global.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/log4qt: link with latomic if needed X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Bilas Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.net/results/fb5/fb52f5366a25230606149f44dc46f86f0273a680/ Signed-off-by: Bartosz Bilas --- package/log4qt/log4qt.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/log4qt/log4qt.mk b/package/log4qt/log4qt.mk index b01d9c6611..0594427cf7 100644 --- a/package/log4qt/log4qt.mk +++ b/package/log4qt/log4qt.mk @@ -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