summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorGeorge Melikov <[email protected]>2021-08-31 20:49:29 +0300
committerTony Hutter <[email protected]>2021-09-14 15:13:11 -0700
commit004e7d3f9a53f1b992948b73c3c910c3d400fe23 (patch)
treec779da87e1fb67430ef648b3fb555476a79cbeb5 /Makefile.am
parentaef8a72afeecbe1f75f0031f6a2227347e89f4a7 (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