Skip to content

Commit

Permalink
trace-cmd: Add Requires: libtracefs to libtracecmd.pc file
Browse files Browse the repository at this point in the history
In order to not have users of libtracecmd having to also include the
includes and libraries for libtracefs and libraceevent, add a requires
field for libtracefs to the libtracecmd.pc file. As libtracefs requires
libtraceevent, it will pull that one in as well.

Link: https://lore.kernel.org/linux-trace-devel/[email protected]

Fixes: 05f2ac4 ("trace-cmd: Add pkg-config configuration for libtracecmd.so")
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
  • Loading branch information
rostedt committed Nov 9, 2021
1 parent 18147cc commit 466da80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libtracecmd.pc.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ Name: libtracecmd
URL: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/
Description: Library for creating and reading trace-cmd data files
Version: LIB_VERSION
Requires: libtracefs >= LIBTRACEFS_MIN_VERSION
Cflags: -I${includedir}
Libs: -L${libdir} -ltracecmd
1 change: 1 addition & 0 deletions scripts/utils.mk
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ define do_make_pkgconfig_file
sed -i "s|INSTALL_PREFIX|${1}|g" ${PKG_CONFIG_FILE}; \
sed -i "s|LIB_VERSION|${LIBTRACECMD_VERSION}|g" ${PKG_CONFIG_FILE}; \
sed -i "s|LIB_DIR|$(libdir)|g" ${PKG_CONFIG_FILE}; \
sed -i "s|LIBTRACEFS_MIN_VERSION|$(LIBTRACEFS_MIN_VERSION)|g" ${PKG_CONFIG_FILE}; \
sed -i "s|HEADER_DIR|$(includedir)/trace-cmd|g" ${PKG_CONFIG_FILE};
endef

Expand Down

0 comments on commit 466da80

Please sign in to comment.