Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5647721img; Wed, 27 Mar 2019 12:23:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3NqAge0IpAO1NPxaQUKtxhR/XcSVtOtwB2jtj1FE6LyNGrL6tTRgcF+r2dxSp3sxOW9yr X-Received: by 2002:a17:902:29ca:: with SMTP id h68mr13968290plb.297.1553714615555; Wed, 27 Mar 2019 12:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553714615; cv=none; d=google.com; s=arc-20160816; b=VDCYIJZ6RJF1Z7mZwoE25wIdCF7eF0BJXPfI+VSZQGGBPqJ8Fi/vJL5hfV2vaffg9C BJbfJCKVwCrk0DfIwT+s5YtUmzfApUxP/fHTJ3zkQmiYv+2jPqA2obHkD+byopQNeS4v oxeIpOfWshHVQkW03S6HCvD/8j8y9nN4+98pxyfETjzC4ybBVKY52GI5utzCT1cxErT/ XC44cEuAFHwOFQ3W07cRJvKiXPNkw9GKuhbyO18Izgf573JPYBxOSKwTVUUhI66rW2wt 8a02e6DFNCJy9D1DQ+Vgb4O8Sgcxmp/Kj32+QwMQ6F3MvQDRRC7xLDvtBKxBY/JTGE+9 KaYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QWMn+VSDmWV77DAkocCFJjq/cWln+oC9PHk7hGvF37E=; b=wJpF/I0gM27UCFZ6DZTit7Y2z/8BQCVzGECSGmPmseRQA3CP7kPGgNeRkDFL6jV67D 3XidVDCYvs9LdOTeVCxyc/eP0Sz9a4KSbjW4aZI9tEnoitDt9uXVKDJ3vzjITa2eLzkU ScwcSkr7Yrv4350yfo58JDrLVb7UOk8ruL0AyEYKygwCXgZFk/Ue/uJ5ls2log+dh243 KlhS4mLWCOmjHS1kTz8WF9ud8PQk4qTdlw80b12PMpQh1YACD2oOqIyqY0SEBFCypM7a qXiyPKNpwjssDHlbQhzazrqffIrz5D/KIdk+alvyjx7fNzP4xnImAtxbXD1A43DZYTE9 cnYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Kb6e2CCd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si17294888pgj.46.2019.03.27.12.23.20; Wed, 27 Mar 2019 12:23:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Kb6e2CCd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730383AbfC0SGP (ORCPT + 99 others); Wed, 27 Mar 2019 14:06:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:47718 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387879AbfC0SGL (ORCPT ); Wed, 27 Mar 2019 14:06:11 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B5CD62177E; Wed, 27 Mar 2019 18:06:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553709970; bh=XVjp35Tex1zTpPcHxN1Y3LCrM06SxgzVYHwwVeTfrD0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kb6e2CCd2j86tc451gnD5ZZzoiBZ5WRaliYY9ihlKFqhbwlnRrXXYtf4nPT9VYUBI E/e5bKP+clNxd68fdDVlWtqSznlTWSEGSH48WP6OEysxTJT2N455Dx+3SqFIyFyZiT yNPybi2/3qeeUBkTvDwHvD8B10wowz2vJmjxFlTU= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnaldo Carvalho de Melo , Adrian Hunter , Alexander Shishkin , Alexey Budankov , Andi Kleen , Jiri Olsa , Namhyung Kim , Peter Zijlstra , Sasha Levin Subject: [PATCH AUTOSEL 5.0 139/262] tools build: Add -lrt to FEATURE_CHECK_LDFLAGS-libaio Date: Wed, 27 Mar 2019 13:59:54 -0400 Message-Id: <20190327180158.10245-139-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnaldo Carvalho de Melo [ Upstream commit aa8f9c517ebce7a0959da064ef2660ea03f133f8 ] Since we need it to resolve the AIO symbols, otherwise we fail with: $ cat /tmp/build/perf/feature/test-all.make.output /usr/bin/ld: /tmp/ccEqrj36.o: undefined reference to symbol 'aio_return64@@GLIBC_2.2.5' /usr/bin/ld: //usr/lib64/librt.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status $ When we added the aio support in 'perf record' only the test-libaio.bin target got the -lrt, i.e. the feature detection slow path. Fix it. Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Fixes: 2a07d814747b ("tools build feature: Check if libaio is available") Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/perf/Makefile.config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index b441c88cafa1..e6360d47e73a 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -218,6 +218,8 @@ FEATURE_CHECK_LDFLAGS-libpython := $(PYTHON_EMBED_LDOPTS) FEATURE_CHECK_CFLAGS-libpython-version := $(PYTHON_EMBED_CCOPTS) FEATURE_CHECK_LDFLAGS-libpython-version := $(PYTHON_EMBED_LDOPTS) +FEATURE_CHECK_LDFLAGS-libaio = -lrt + CFLAGS += -fno-omit-frame-pointer CFLAGS += -ggdb3 CFLAGS += -funwind-tables -- 2.19.1