From patchwork Mon Aug 27 16:41:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 962566 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sQCg3+4p"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41zd3Q03K5z9s4c for ; Tue, 28 Aug 2018 02:42:41 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 71152858FA; Mon, 27 Aug 2018 16:42:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2JYeyeEGMcHc; Mon, 27 Aug 2018 16:42:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id CAB69858FE; Mon, 27 Aug 2018 16:42:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B0CC11C2C9B for ; Mon, 27 Aug 2018 16:42:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AC24C8457B for ; Mon, 27 Aug 2018 16:42:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YbZpg2J+MkI2 for ; Mon, 27 Aug 2018 16:42:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0267E84575 for ; Mon, 27 Aug 2018 16:42:34 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id w11-v6so14242111wrc.5 for ; Mon, 27 Aug 2018 09:42:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=tnLZzr6GrwCqmRFempiMZyHFzUXdyxMVtIaSp57Wrds=; b=sQCg3+4pXiYm8E49wcrF8OlhKdRIx4f136/8yfnJpDccgcYky4Eg3lkKfe0T1seMsL qZqdgTUsmccS1exwNwxMjW1EuMYZzOILi09EM7n6Xf/fTTQJLyNCpSJ5A3ttYL/E1YF9 cylgG1lhtteEOMbJL5cLU2ycfUmWJKE8reXnXAIqRRM5NqeIGXIsqELw7gaAkmc/BkVm KmIWLd+ktmBhvOuN6DW2uMS47DSuaKDgftTsMvGYqI8+qikzhkO5dL1aAzoMSmfLwdC5 LrIOTv38Hs5tIcRMd7FYAq2/1i/IaOAwNJZjHoFciJRn66wUQISoOZb1ExMzG/HWOuGa azVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tnLZzr6GrwCqmRFempiMZyHFzUXdyxMVtIaSp57Wrds=; b=CGPhOCTE3TZ4fV6kbZBmfwfXWJUPcDbOquxudCnXHMpLuhl2g1TWl0i42FG2HDyYS7 KjDPbGEqYELu5U9XYMYhca8X9G6AA/A4w59WClaanVzKIgNmIKF6eS9hx+ocX9t4JTdI 8e0w4thNUjWb1+Q29YvE2X7KC0x1toXV5o7z9zMGyqwlH+jrc1XJO+BC45Z7zIlX0mgw Ach5b594rmXtpqTMWYpeNYHKlj7cStZmxYEIJxBTT40tyeFPMR6W+hyA0RSk0I8fGIMQ ruagJpcxD1lBE5z8dqUPL2bJgw02f/e2JUOBpTNAsTQ1RODvFu45l40UVjfjyJxWNy+2 mPug== X-Gm-Message-State: APzg51CJAafUGfMBm9qUiP9gHzhCgX5JVmRBJC9NiD4QZ0Og5LHL7DII XnYPTaJRBdFfOAgZng9od93Gf4sf X-Google-Smtp-Source: ANB0VdbTakVDy31YOyMQh+aVBRB/WLwBkrGj/CWFFPA8irD2PMaaUa/7/et/hAhS1/J49udQ+cgLhw== X-Received: by 2002:adf:f7c4:: with SMTP id a4-v6mr9797177wrq.86.1535388152108; Mon, 27 Aug 2018 09:42:32 -0700 (PDT) Received: from fabrice-VirtualBox.home (ARennes-656-1-327-125.w109-218.abo.wanadoo.fr. [109.218.215.125]) by smtp.gmail.com with ESMTPSA id v6-v6sm8506172wmc.43.2018.08.27.09.42.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 09:42:31 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 27 Aug 2018 18:41:02 +0200 Message-Id: <20180827164102.21147-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [Buildroot] [PATCH 1/1] cutelyst: link with libatomic when needed X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" On some architectures, atomic binutils 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.net/results/9e307ab9c7067b26d7b33a572204394808e25772 Signed-off-by: Fabrice Fontaine --- package/cutelyst/cutelyst.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/cutelyst/cutelyst.mk b/package/cutelyst/cutelyst.mk index e8695a7b3a..1f1a5249be 100644 --- a/package/cutelyst/cutelyst.mk +++ b/package/cutelyst/cutelyst.mk @@ -16,6 +16,10 @@ CUTELYST_CONF_OPTS += \ -DPLUGIN_CSRFPROTECTION=ON \ -DPLUGIN_VIEW_GRANTLEE=OFF +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +CUTELYST_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic +endif + ifeq ($(BR2_PACKAGE_LIBPWQUALITY),y) CUTELYST_CONF_OPTS += -DPLUGIN_VALIDATOR_PWQUALITY=ON CUTELYST_DEPENDENCIES += libpwquality