From patchwork Tue Dec 3 13:56:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 11271333 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DCED0930 for ; Tue, 3 Dec 2019 13:57:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AFE5520833 for ; Tue, 3 Dec 2019 13:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575381447; bh=4Y5les2QPp9RMUV/+8T7sp4s/UMC+5s/mWwh/lFeYV8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=gG9kzagJoJGFYS0tIFYreeuPUQyYe2ePHBUwScJj1ftf1RIDyPKV05+mCr/MHB3Nv y9xY/5eW9GB9KimxodC/kow2OKXGWH6oVpZx9YSGFuw+N/wuDiVupfJPI/R5LZyrJn fKp/MhJNdRR9t/SI82VFUSq//XepINuAkqSTpwI4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727298AbfLCN5Y (ORCPT ); Tue, 3 Dec 2019 08:57:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:35484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727219AbfLCN5X (ORCPT ); Tue, 3 Dec 2019 08:57:23 -0500 Received: from quaco.ghostprotocols.net (unknown [179.97.35.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 69B07206DF; Tue, 3 Dec 2019 13:57:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575381443; bh=4Y5les2QPp9RMUV/+8T7sp4s/UMC+5s/mWwh/lFeYV8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=06PRYVQlks6WZ/MvbuauFjM/LlLbx92usJAmaTWjktIMg2Lkic0q5xV5Ir8+Tcy9N GeKL26F1u+jeLF0dtTNBOvpT8pPMMrRzkwJu7oCUnnGXZl3t8AXKCROBa2gCJFPZbg YMMAzJZTsb1mvp2ma7ubF0SINhSsX0CFes4HuiwU= From: Arnaldo Carvalho de Melo To: Ingo Molnar , Thomas Gleixner Cc: Jiri Olsa , Namhyung Kim , Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Sudip Mukherjee , Steven Rostedt , linux-trace-devel@vger.kernel.org, Arnaldo Carvalho de Melo Subject: [PATCH 22/23] libtraceevent: Fix lib installation with O= Date: Tue, 3 Dec 2019 10:56:05 -0300 Message-Id: <20191203135606.24902-23-acme@kernel.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191203135606.24902-1-acme@kernel.org> References: <20191203135606.24902-1-acme@kernel.org> MIME-Version: 1.0 Sender: linux-trace-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org From: Sudip Mukherjee When we use 'O=' with make to build libtraceevent in a separate folder it fails to install libtraceevent.a and libtraceevent.so.1.1.0 with the error: INSTALL /home/sudip/linux/obj-trace/libtraceevent.a INSTALL /home/sudip/linux/obj-trace/libtraceevent.so.1.1.0 cp: cannot stat 'libtraceevent.a': No such file or directory Makefile:225: recipe for target 'install_lib' failed make: *** [install_lib] Error 1 I used the command: make O=../../../obj-trace DESTDIR=~/test prefix==/usr install It turns out libtraceevent Makefile, even though it builds in a separate folder, searches for libtraceevent.a and libtraceevent.so.1.1.0 in its source folder. So, add the 'OUTPUT' prefix to the source path so that 'make' looks for the files in the correct place. Signed-off-by: Sudipm Mukherjee Reviewed-by: Steven Rostedt (VMware) Cc: linux-trace-devel@vger.kernel.org Link: http://lore.kernel.org/lkml/20191115113610.21493-1-sudipm.mukherjee@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/lib/traceevent/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index cbb429f55062..83446fe2cf01 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile @@ -97,6 +97,7 @@ EVENT_PARSE_VERSION = $(EP_VERSION).$(EP_PATCHLEVEL).$(EP_EXTRAVERSION) LIB_TARGET = libtraceevent.a libtraceevent.so.$(EVENT_PARSE_VERSION) LIB_INSTALL = libtraceevent.a libtraceevent.so* +LIB_INSTALL := $(addprefix $(OUTPUT),$(LIB_INSTALL)) INCLUDES = -I. -I $(srctree)/tools/include $(CONFIG_INCLUDES)