aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorGeorge Melikov <[email protected]>2021-08-31 20:49:29 +0300
committerBrian Behlendorf <[email protected]>2021-09-02 10:01:45 -0700
commita9655fc2bd1f83f1b305ff7ed16f698b87834e73 (patch)
treee5744953cf8ce326b61619aa31170490b234a23e /Makefile.am
parent157a4d05bd732bdeb6f23158331dd683d89305cb (diff)
Check for libabigail version
We need to use 1.8.0+ version, older versions may segfault and give inconsistent results. Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: George Melikov <[email protected]> Closes #12529
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 4e7e29589..060729642 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