diff mbox series

trace-cmd: Add build message if the best compression algorithm is not avaiable

Message ID 20220224142440.3d5dbf83@gandalf.local.home (mailing list archive)
State Accepted
Commit 87da53be9f4c1240ecfc29b5529e21ae3177d780
Headers show
Series trace-cmd: Add build message if the best compression algorithm is not avaiable | expand

Commit Message

Steven Rostedt Feb. 24, 2022, 7:24 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

If the best compression package is not available at build time, give a
message stating so. This can help users know that hey should install the
compression developer package.

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
Depends on: https://lore.kernel.org/all/YhOVEG2AjVPJEw0q@breakpoint.cc/

 Makefile | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index b4b08b8858aa..3009c2d74592 100644
--- a/Makefile
+++ b/Makefile
@@ -315,6 +315,10 @@  LIBZSTD_LDLAGS = $(shell sh -c "$(PKG_CONFIG) --libs libzstd")
 CFLAGS += -DHAVE_ZSTD
 ZSTD_INSTALLED=1
 $(info    Have ZSTD compression support)
+else
+$(info	  *************************************************************)
+$(info	  ZSTD package not found, best compression algorithm not in use)
+$(info	  *************************************************************)
 endif
 
 export LIBZSTD_CFLAGS LIBZSTD_LDLAGS ZSTD_INSTALLED