2020-11-15 07:35:31 +03:00
|
|
|
#
|
|
|
|
# When performing an ABI check the following options are applied:
|
|
|
|
#
|
|
|
|
# --no-unreferenced-symbols: Exclude symbols which are not referenced by
|
|
|
|
# any debug information. Without this _init() and _fini() are incorrectly
|
|
|
|
# reported on CentOS7 for libuutil.so.
|
|
|
|
#
|
|
|
|
# --headers-dir1: Limit ABI checks to public OpenZFS headers, otherwise
|
|
|
|
# changes in public system headers are also reported.
|
|
|
|
#
|
|
|
|
# --suppressions: Honor a suppressions file for each library to provide
|
|
|
|
# a mechanism for suppressing harmless warnings.
|
|
|
|
#
|
|
|
|
|
|
|
|
PHONY += checkabi storeabi
|
|
|
|
|
|
|
|
checkabi:
|
|
|
|
for lib in $(lib_LTLIBRARIES) ; do \
|
|
|
|
abidiff --no-unreferenced-symbols \
|
|
|
|
--headers-dir1 ../../include \
|
|
|
|
--suppressions $${lib%.la}.suppr \
|
|
|
|
$${lib%.la}.abi .libs/$${lib%.la}.so ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
storeabi:
|
|
|
|
cd .libs ; \
|
|
|
|
for lib in $(lib_LTLIBRARIES) ; do \
|
2021-05-15 12:53:14 +03:00
|
|
|
abidw --no-show-locs $${lib%.la}.so > ../$${lib%.la}.abi ; \
|
2020-11-15 07:35:31 +03:00
|
|
|
done
|