Skip to content

Commit 004e7d3

Browse files
gmelikovtonyhutter
authored andcommitted
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 openzfs#12529
1 parent aef8a72 commit 004e7d3

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Makefile.am

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,20 @@ SHELLCHECKDIRS = cmd contrib etc scripts tests
129129
SHELLCHECKSCRIPTS = autogen.sh
130130

131131
PHONY += checkabi storeabi
132-
checkabi: lib
132+
133+
checklibabiversion:
134+
libabiversion=`abidw -v | $(SED) 's/[^0-9]//g'`; \
135+
if test $$libabiversion -lt "180"; then \
136+
/bin/echo -e "\n" \
137+
"*** Please use libabigail 1.8.0 version or newer;\n" \
138+
"*** otherwise results are not consistent!\n"; \
139+
exit 1; \
140+
fi;
141+
142+
checkabi: checklibabiversion lib
133143
$(MAKE) -C lib checkabi
134144

135-
storeabi: lib
145+
storeabi: checklibabiversion lib
136146
$(MAKE) -C lib storeabi
137147

138148
PHONY += mancheck

0 commit comments

Comments
 (0)