[v2,1/2] build: limit symbol visibility for libodp-linux

Message ID 1517540407-7907-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • [v2,1/2] build: limit symbol visibility for libodp-linux
Related show

Commit Message

Github ODP bot Feb. 2, 2018, 3 a.m.
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@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.ereminsolenikov@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: b95ccd3db6eeb7358a877541747e06354429acdd
 ** Merge commit sha: 93f84688ed1f3f3a6bf2eed856d79545ba8ba930
 **/
 platform/Makefile.inc | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/platform/Makefile.inc b/platform/Makefile.inc
index 4714de0ee..119649013 100644
--- a/platform/Makefile.inc
+++ b/platform/Makefile.inc
@@ -8,6 +8,8 @@  lib_LTLIBRARIES = $(LIB)/libodp-linux.la
 
 AM_LDFLAGS = -version-number '$(ODP_LIBSO_VERSION)'
 
+AM_LDFLAGS += -export-symbols-regex '^(_deprecated)?_?odp*'
+
 AM_CFLAGS = "-DGIT_HASH=$(VERSION)"
 AM_CFLAGS += $(VISIBILITY_CFLAGS)