Message ID | 1517853606-19509-2-git-send-email-odpbot@yandex.ru |
---|---|
State | New |
Headers | show |
Series | [v1,1/1] build: limit symbol visibility for libodp-linux | expand |
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)