From patchwork Mon Aug 20 18:59:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144656 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4324988ljj; Mon, 20 Aug 2018 12:00:28 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzhduW5boSm5naVuL7JZoSCS6byfikV4vZ4xrm3CTA8wd9V05YROW2oNXbuGY9K17e98jdt X-Received: by 2002:a62:e18:: with SMTP id w24-v6mr49310659pfi.145.1534791628327; Mon, 20 Aug 2018 12:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534791628; cv=none; d=google.com; s=arc-20160816; b=HAydBnwf+YHnpgWFXUIeBm6L5OiZienfJDY1B3YY5l3BPUW21VrIx2kCRs9EJgqF0m YGeZqp0lKvqnRfsCCHt0jyOIdQykenKZTI8S26NNTJ+K+l/8S4WqCuANoDDg8b7qu4Gs zStp+1+nKXmi6VaHx0wPhcHrR+ec2I2SGVyQ4YS/7f+iBwOY6xzDR3OW4WPxSDvUcjXs PdxxNorKTYleKGXvZz8DVrQt3UMCIHDY1Bjbs71gI/ZtYZsOXnBmxnocfyEjLsCODmv+ axgEkSEtjiVhJzy/SVKnw1j+7AjoV4L9Nl6WE1kINFgUdIzkVdk2LufL7c9di9UNPa7e atWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=eNvAk/Z3BOf2PiNAaULlyvy4veolM8sgHX+d36dObac=; b=YhLdwBtvrZPU+W5IXzRDTIODtzOMmIQXXu/1gw98vqs819zx6PBqC5UDCPLNgvVZP0 6IoLJ9J8d68i1ZAe9ce8WewbVpSq2ojltRfOqDMePJgI+fXKUKfw5soye41qX616YB5b 6IHXsLUYZBM5hX7D3j5PuTKiSEpZ64b/ICsaR9VYHzpfUwQrcjas2fDISjjBG4toHC4X iPW57MUOEmCmjVJSyvdFByl873YryDg7t37xrG6HtaHiA7aMuMNCYPY6xqPFIM/QUNB8 ur+TeFlNnyHSAaZNWw98svAIHHV84y1OWojUbNPQfWBZCSrCcunzQuQ/iZ3pIzZG2Sfn j4Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=d0GN43Wn; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-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 w135-v6si10964041pff.8.2018.08.20.12.00.27; Mon, 20 Aug 2018 12:00:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-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=d0GN43Wn; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 13C3B7914E; Mon, 20 Aug 2018 19:00:21 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mail.openembedded.org (Postfix) with ESMTP id 3D8E779074 for ; Mon, 20 Aug 2018 19:00:00 +0000 (UTC) Received: by mail-pg1-f173.google.com with SMTP id z25-v6so2533462pgu.7 for ; Mon, 20 Aug 2018 12:00:01 -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:in-reply-to:references; bh=SOM9N/pYMukLr8AT45/QXONPE2OWrYMBMbVnfyqJA3c=; b=d0GN43WnRfLJdYMXRwnXNb/REzmmZPxtHrZ86aSlmDxkW3KmKjpT8HzdWkTfk/FU8F zmhbKTn8ed6fMfBck46Htj1zHGrpG6Bh6CDAOGShWYhG84V5IxequfmwpU42YTtQq50F /9ya1pwYUdFIT8hhx0cZN/4ktVYhEPJ0cTdqV/5G39NUSK5w2RaMAGDh/O0exPRnEuoY Rjvu7xvDv6sVVzYI1zsD9qZYMkoJjod7btpnCB4tCgs2UCO07ansmEdqSm7u32ZfBzBM 1f3ShGnu+ffMpBnY6S+eEy33fNpPCa8isuj5uRY+nxyF4hNdLe/SyXkNZbVTC2sZIITf mC8g== 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:in-reply-to :references; bh=SOM9N/pYMukLr8AT45/QXONPE2OWrYMBMbVnfyqJA3c=; b=pijS47VyruHQbJ2sxN18SaSiMScF/WoIRop4OkcqkZKLTkCettlmdYCxyGIoPEsQGq p63o6fmWrISPFdWazLs+g/hpIfiK1YEtiENWaZmCSpBWMech6vL3IPL22yD0JqSLpIYw DaLpDdwlYFSl937vwvUoTl5Iwp8Y4P60EkYxcp8/Npciq1/yWz1Ky9G8EvEfOmuOz/yz etxMKr9jme3eSeyTpwWb8X1q0a5x2he3AJbEBSBCKud1GcoV5jOn7HYBgnK4fEKlwN99 LYoXmm+V/Vj5+dKxQWz/fXbkBvERmkQwKT2x0W3xNjr7XC9D5XxaLn29dClioGshrVEf y5lg== X-Gm-Message-State: AOUpUlF19Bv/CZ7rx50i4swovVXhJFtD1/1Bs3YpYLxbNGxCtZy5hifX tZcb1zKHkHHiKJAxUzyl4AAadVKH X-Received: by 2002:a63:4d06:: with SMTP id a6-v6mr43950566pgb.408.1534791600995; Mon, 20 Aug 2018 12:00:00 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id j27-v6sm18773223pfj.91.2018.08.20.11.59.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Aug 2018 12:00:00 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 20 Aug 2018 11:59:49 -0700 Message-Id: <2c5a62b8c4afe40ff2c0fbe2263e9c96d40b63d7.1534791421.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Subject: [OE-core] [PATCH 3/5] gdb: Alias rpl_stat to stat() on musl X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Use CPPFLAGS instead of CFLAGS since there is C++ compiler being used for somefiles Fixes gdb/gdbserver/../../../gdb-8.1.1/gdb/gdbserver/../common/common-utils.c:419: undefined reference to `rpl_stat' | collect2: error: ld returned 1 exit status | make[4]: *** [Makefile:414: libinproctrace.so] Error 1 Signed-off-by: Khem Raj --- meta/recipes-devtools/gdb/gdb_8.1.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.18.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-devtools/gdb/gdb_8.1.1.bb b/meta/recipes-devtools/gdb/gdb_8.1.1.bb index 84ab08ce93..c6eac84dd8 100644 --- a/meta/recipes-devtools/gdb/gdb_8.1.1.bb +++ b/meta/recipes-devtools/gdb/gdb_8.1.1.bb @@ -26,4 +26,4 @@ EOF chmod +x ${WORKDIR}/python fi } -CFLAGS_append_libc-musl = " -Drpl_gettimeofday=gettimeofday" +CPPFLAGS_append_libc-musl = " -Drpl_gettimeofday=gettimeofday -Drpl_stat=stat"