From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> If libodp-linux is linked with static DPDK libraries, it will re-export all DPDK symbols. Use libtool's -export-symbols-regex to limit symbol visibility.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org> --- /** Email created from pull request 449 (lumag:visibility) ** https://github.com/Linaro/odp/pull/449 ** Patch: https://github.com/Linaro/odp/pull/449.patch ** Base sha: 5865787680be13b47b777e8b0b64646755be41e0 ** Merge commit sha: cc979019373b81a80e9e7c7c417ce9557932d6cc **/ platform/Makefile.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/Makefile.inc b/platform/Makefile.inc index 4714de0ee..813ad97e0 100644 --- a/platform/Makefile.inc +++ b/platform/Makefile.inc @@ -8,6 +8,12 @@ lib_LTLIBRARIES = $(LIB)/libodp-linux.la AM_LDFLAGS = -version-number '$(ODP_LIBSO_VERSION)' +if ODP_ABI_COMPAT +AM_LDFLAGS += -export-symbols-regex '^(_deprecated)?odp_' +else +AM_LDFLAGS += -export-symbols-regex '^(_deprecated)?_?odp_' +endif + AM_CFLAGS = "-DGIT_HASH=$(VERSION)" AM_CFLAGS += $(VISIBILITY_CFLAGS)