From a9655fc2bd1f83f1b305ff7ed16f698b87834e73 Mon Sep 17 00:00:00 2001 From: George Melikov Date: Tue, 31 Aug 2021 20:49:29 +0300 Subject: [PATCH] Check for libabigail version We need to use 1.8.0+ version, older versions may segfault and give inconsistent results. Reviewed-by: John Kennedy Reviewed-by: Brian Behlendorf Signed-off-by: George Melikov Closes #12529 --- Makefile.am | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 4e7e29589f..0607296425 100644 --- a/Makefile.am +++ b/Makefile.am @@ -129,10 +129,20 @@ SHELLCHECKDIRS = cmd contrib etc scripts tests SHELLCHECKSCRIPTS = autogen.sh PHONY += checkabi storeabi -checkabi: lib + +checklibabiversion: + libabiversion=`abidw -v | $(SED) 's/[^0-9]//g'`; \ + if test $$libabiversion -lt "180"; then \ + /bin/echo -e "\n" \ + "*** Please use libabigail 1.8.0 version or newer;\n" \ + "*** otherwise results are not consistent!\n"; \ + exit 1; \ + fi; + +checkabi: checklibabiversion lib $(MAKE) -C lib checkabi -storeabi: lib +storeabi: checklibabiversion lib $(MAKE) -C lib storeabi PHONY += mancheck