diff options
author | Jere Leppänen <jere.leppanen@nokia.com> | 2021-02-22 15:53:03 +0200 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2021-02-26 15:09:58 +0200 |
commit | 21cd5e4e309a24a81bfdea2b998a83426891876a (patch) | |
tree | 6224937581a70600420ea7f751358d891f82a215 /platform/linux-generic/Makefile.am | |
parent | 706e1e6b24a40bfd9c2b07f084af47532bc2141f (diff) |
build: check names of global symbols in static libraries
Add tests to check that global symbols in static libodp-linux and
libodphelper conform to certain prefix patterns.
Fixes: https://github.com/OpenDataPlane/odp/issues/805
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/Makefile.am')
-rw-r--r-- | platform/linux-generic/Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/linux-generic/Makefile.am b/platform/linux-generic/Makefile.am index 1d9a3bbdb..f563040f5 100644 --- a/platform/linux-generic/Makefile.am +++ b/platform/linux-generic/Makefile.am @@ -373,3 +373,16 @@ __LIB__libodp_linux_la_LIBADD += $(TIMER_LIBS) if ODP_PKTIO_PCAP __LIB__libodp_linux_la_LIBADD += $(PCAP_LIBS) endif + +CHECK_GLOBALS_REGEX = " (odp_|_odp_|_deprecated_odp_|miniz_|mz_|tdefl_|tinfl_|mp_hdlr_init_odp_pool_ops)" + +TESTS_ENVIRONMENT = \ + LIBTOOL="$(LIBTOOL)" \ + NM="$(NM)" \ + LIB="$(LIB)" \ + lib_LTLIBRARIES="$(lib_LTLIBRARIES)" \ + CHECK_GLOBALS_REGEX=$(CHECK_GLOBALS_REGEX) + +dist_check_SCRIPTS = check-globals.sh + +TESTS = $(dist_check_SCRIPTS) |