export only required symbols, do not export internal symbols from the library

Hopefully I collected the list of symbols to expot correctly.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Michael Tokarev
2012-05-12 01:20:16 +04:00
committed by Ronnie Sahlberg
parent aee0e3bf72
commit 261924d73a
2 changed files with 122 additions and 1 deletions

View File

@@ -30,7 +30,8 @@ lib_libiscsi_la_SOURCES = \
SONAME=$(firstword $(subst ., ,$(VERSION)))
SOREL=$(shell printf "%d%02d%02d" $(subst ., ,$(VERSION)))
lib_libiscsi_la_LDFLAGS = \
-version-info $(SONAME):$(SOREL):0 -bindir $(bindir) -no-undefined
-version-info $(SONAME):$(SOREL):0 -bindir $(bindir) -no-undefined \
-export-symbols lib/libiscsi.syms
# libiscsi utilities