From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41EE5C4361B for ; Thu, 3 Dec 2020 19:08:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E46C2221E7 for ; Thu, 3 Dec 2020 19:08:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726004AbgLCTIX (ORCPT ); Thu, 3 Dec 2020 14:08:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:37248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbgLCTIX (ORCPT ); Thu, 3 Dec 2020 14:08:23 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 7A1B1221EA for ; Thu, 3 Dec 2020 19:07:42 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.94) (envelope-from ) id 1kktx7-002s0w-9V for linux-trace-devel@vger.kernel.org; Thu, 03 Dec 2020 14:07:41 -0500 Message-ID: <20201203190741.174872816@goodmis.org> User-Agent: quilt/0.66 Date: Thu, 03 Dec 2020 14:06:54 -0500 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Subject: [PATCH 2/2] libtracefs: Add $(LIBS) to building of shared object library References: <20201203190652.568672226@goodmis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org From: "Steven Rostedt (VMware)" libtracefs.so relies on libtraceevent.so, but it an application were to include libtracefs.so, it should not be required to include libtraceevent.so if that application is not using it. Add the libtraceevent library to the build of libtracefs.so so that what libtracefs.so uses is included in that code. Signed-off-by: Steven Rostedt (VMware) --- scripts/utils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils.mk b/scripts/utils.mk index d1d5135063fc..1ee283fe4393 100644 --- a/scripts/utils.mk +++ b/scripts/utils.mk @@ -61,7 +61,7 @@ do_build_static_lib = \ do_compile_shared_library = \ ($(print_shared_lib_compile) \ - $(CC) --shared $^ -Wl,-soname,$(@F) -o $@) + $(CC) --shared $^ -Wl,-soname,$(@F) -o $@ $(LIBS)) do_compile_plugin_obj = \ ($(print_plugin_obj_compile) \ -- 2.28.0