Linux-Trace-Devel Archive on
 help / color / Atom feed
From: Steven Rostedt <>
Subject: [PATCH 1/3] tracefs: Include -ltracecmd to build
Date: Fri, 24 Jan 2020 21:50:09 -0500
Message-ID: <> (raw)
In-Reply-To: <>

From: "Steven Rostedt (VMware)" <>

There's functions that uses that require
compiled as well. Instead of requiring applicatons that use -ltracefs to
also include -ltracecmd, simply add it to the build of

Signed-off-by: Steven Rostedt (VMware) <>
 lib/tracefs/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/tracefs/Makefile b/lib/tracefs/Makefile
index 5763e06d0326..f6d93ec84236 100644
--- a/lib/tracefs/Makefile
+++ b/lib/tracefs/Makefile
@@ -22,6 +22,8 @@ $(bdir):
 $(OBJS): | $(bdir)
 $(DEPS): | $(bdir)
+LIBS = -L$(obj)/lib/trace-cmd -ltracecmd
 $(bdir)/libtracefs.a: $(OBJS)
 	$(Q)$(call do_build_static_lib)

  reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-25  2:50 [PATCH 0/3] trace-cmd: Various updates and fixes Steven Rostedt
2020-01-25  2:50 ` Steven Rostedt [this message]
2020-01-25  2:50 ` [PATCH 2/3] trace-cmd: Remove error processing from write_file() use error_log instead Steven Rostedt
2020-01-25  2:50 ` [PATCH 3/3] trace-cmd: Fix the looping to clear triggers and filters Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-Trace-Devel Archive on

Archives are clonable:
	git clone --mirror linux-trace-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-trace-devel linux-trace-devel/ \
	public-inbox-index linux-trace-devel

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone