Message ID | 1517605217-8067-2-git-send-email-odpbot@yandex.ru |
---|---|
State | Superseded |
Headers | show |
Series | [v4,1/2] 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)