1# 2# When performing an ABI check the following options are applied: 3# 4# --no-unreferenced-symbols: Exclude symbols which are not referenced by 5# any debug information. Without this _init() and _fini() are incorrectly 6# reported on CentOS7 for libuutil.so. 7# 8# --headers-dir1: Limit ABI checks to public OpenZFS headers, otherwise 9# changes in public system headers are also reported. 10# 11# --suppressions: Honor a suppressions file for each library to provide 12# a mechanism for suppressing harmless warnings. 13# 14 15PHONY += checkabi storeabi 16 17checkabi: 18 for lib in $(lib_LTLIBRARIES) ; do \ 19 abidiff --no-unreferenced-symbols \ 20 --headers-dir1 ../../include \ 21 --suppressions $${lib%.la}.suppr \ 22 $${lib%.la}.abi .libs/$${lib%.la}.so ; \ 23 done 24 25storeabi: 26 cd .libs ; \ 27 for lib in $(lib_LTLIBRARIES) ; do \ 28 abidw $${lib%.la}.so > ../$${lib%.la}.abi ; \ 29 done 30