From patchwork Tue Nov 19 01:16:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 179618 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp3653459ilf; Mon, 18 Nov 2019 17:16:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzX8dDRBYz8/kL5DTZ6ke49nLxvSxj9YU+QG0a5kAM5rz4K0jHtEPIPaH/Yk3IydQMAkkH6 X-Received: by 2002:a62:e219:: with SMTP id a25mr2513800pfi.252.1574126213469; Mon, 18 Nov 2019 17:16:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574126213; cv=none; d=google.com; s=arc-20160816; b=nKluLZ5iXI6rHYyPrFeUnDHH4h3MEdNT8+e8gpsTvStJAMdAhl7+O8hPPcEWA3rbAk Ow2fo5JAmGYLtSm5imJcM1sE41ploVwNoWN7qpvkiKTyAXgi9RpigE+d2IP6SfjFIg+M /TRom1vaWnhcVfZNEFt5zumbVGDQnAbHeYE4YIfGZ8o1ojmlxdaaYfUjr9YLjTG6Y2La H8YxPT3nETaPNWKMxvuDIcrE2EatOil+kElV0Vx314v9vWauMr2wwkcgiZLLgcKK4MFu D8WZVQqvfsO4+jG744o578TI3ADlpePa0Viky3h3tPZD/4moozN5IUE4jIFZOk5Jcj22 0H2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=jFtjMvekUoIUTVkd00MabdmS8Zcgv2AQhDiopDynNYY=; b=bVhgbR1QlOrk4uvKOjl1jgmV8KnFCMvaSR39rG7u0SgebuQo9C8qNX1X1VUBc9bgi3 mlyLv/W7Ab26/ByZbo+vkUViD0yJYr66dx2Yk8/oC0t2eNlV8U9EaosvnA4PxRolv6sp x+eX2yNM0hMwbPsv695YmEW8EvGqfk8HGb3rzB417qFGebP3sj48umnpW2L4knaS6pgf DSVUfMeo6RwkBwoiaatq6ADnLd4zQTBLULTQXTY3cEcdC4ou65BZAfhNEqUxzXVFtL1v lY8X8/HczVHtD7cBjmJ1hbKTDNZn1qPTrBWeGb2WYkY0j/8mWKbGhQyi5c9sAGmJInV+ nsOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=jN8MifEI; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id w190si21794914pgd.454.2019.11.18.17.16.52; Mon, 18 Nov 2019 17:16:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=jN8MifEI; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 13F2D6C132; Tue, 19 Nov 2019 01:16:45 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by mail.openembedded.org (Postfix) with ESMTP id D95796C132 for ; Tue, 19 Nov 2019 01:16:42 +0000 (UTC) Received: by mail-pj1-f67.google.com with SMTP id bo14so2036196pjb.1 for ; Mon, 18 Nov 2019 17:16:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sNYkX76fj+CYjMoiAInB5NGZD2HHRoULZrp9v3l9CxE=; b=jN8MifEI9igiPOegQCNloRBbrCy/igcYm6hi0xYqYQ05NoyP9QjWuZ7P6+ly2hwLjs i8g5dVrzXa+RW9HkRjZjoMJpI05yXxZIDun9OHse47lpxhajNGmz32ADC0KunqLJLhNy 1Zx9IrjHXy+1GyQpJCz4dv4kVeildKVNfDhwzXig/RePmDsI1a1yNvhTY0Gy6ErZADI3 QZ2O/wqNrBaJIhdX5m+zSlWIDV+2Ocy+8t36HSGiD6grsSQ2qyPTytbYHeM0Dxly3R8Q tVWTAHlJ7au1GKhMowwCHOS95i0KfMii6keMAe6u9ttTBqKHY41SdB4sz6Ih08HMRI5u PfVQ== 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:mime-version :content-transfer-encoding; bh=sNYkX76fj+CYjMoiAInB5NGZD2HHRoULZrp9v3l9CxE=; b=QsVMSA/tl8oVTeOE5IcGfd+Hox6jqRYZ6/Fh0kcfxmLiOWeVj1tQm5kZRd3Sfo8dXO ge/ldd0ec/L9UpW4qlNhqUt/OEFLlP3FoVeyEytnmZb0EVeN0v/YDjdlSse4cZV2XFG5 LUsaQQjWGkMnqtz1ZVxWBVFBBlTQTDvoTdHV+5c9fUBEQeno+173w6FLnBVpwOmbSpvj DFdlCozuad+Fy58/H59qKt0JiW408ZfXb9kDeYODhp7fr7Eeaht8A49L1m0IUX8UPxjF s9TeBwErXfjLUjNYvRpGH0s1HRXHF/PXWmQfLKXNgXMzMlG9HNmF9U+esw5hDfFsv66a Dxmg== X-Gm-Message-State: APjAAAUDbwPaP/tWJ1FYQKH5Z0aJvMrhHAofumzk1TvuGubsg5d9J2k0 bukfbZzgw6mnLpwIJyUf1RKGmLH3DII= X-Received: by 2002:a17:902:d708:: with SMTP id w8mr427866ply.280.1574126202956; Mon, 18 Nov 2019 17:16:42 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:1c20::30e8]) by smtp.gmail.com with ESMTPSA id y8sm22021106pfl.8.2019.11.18.17.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Nov 2019 17:16:42 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Mon, 18 Nov 2019 17:16:28 -0800 Message-Id: <20191119011629.3835732-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 1/2] grpc: Link with libatomic on clang/x86 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org clang does delegate the atomic calls to libatomic on x86 where as gcc tries to use intrinsics, its debatable who is right, but it does seem that clang is safe in case pointer is unaligned Signed-off-by: Khem Raj --- meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb | 4 ++++ 1 file changed, 4 insertions(+) -- 2.24.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb b/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb index ecc575bcfb..24072c0832 100644 --- a/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb +++ b/meta-networking/recipes-devtools/grpc/grpc_1.24.3.bb @@ -42,6 +42,10 @@ do_configure_prepend_mipsarch() { sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt } +do_configure_prepend_toolchain-clang_x86() { + sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt +} + BBCLASSEXTEND = "native nativesdk" SYSROOT_DIRS_BLACKLIST_append_class-target = "${libdir}/cmake/grpc"