Unverified Commit 4d1d64b7 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #3322 from jcourreges/libtool-export-symbols

Portable solution for library symbols visibility
parents 36745fbf 70b48a9c
......@@ -294,20 +294,17 @@ else
if ON_LINUX
src_libzmq_la_LDFLAGS = \
-version-info @LTVER@ \
@LIBZMQ_EXTRA_LDFLAGS@ \
-Wl,--version-script=$(srcdir)/src/libzmq.vers
@LIBZMQ_EXTRA_LDFLAGS@
else
if ON_GNU
src_libzmq_la_LDFLAGS = \
-version-info @LTVER@ \
@LIBZMQ_EXTRA_LDFLAGS@ \
-Wl,--version-script=$(srcdir)/src/libzmq.vers
@LIBZMQ_EXTRA_LDFLAGS@
else
if ON_DEBIAN_KFREEBSD
src_libzmq_la_LDFLAGS = \
-version-info @LTVER@ \
@LIBZMQ_EXTRA_LDFLAGS@ \
-Wl,--version-script=$(srcdir)/src/libzmq.vers
@LIBZMQ_EXTRA_LDFLAGS@
else
src_libzmq_la_LDFLAGS = \
-version-info @LTVER@ \
......@@ -319,6 +316,8 @@ endif
endif
endif
src_libzmq_la_LDFLAGS += -export-symbols-regex '^zmq_.*'
src_libzmq_la_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) $(LIBUNWIND_CFLAGS)
src_libzmq_la_CFLAGS = $(CODE_COVERAGE_CFLAGS) $(LIBUNWIND_CFLAGS)
src_libzmq_la_CXXFLAGS = @LIBZMQ_EXTRA_CXXFLAGS@ $(CODE_COVERAGE_CXXFLAGS) \
......@@ -1046,7 +1045,6 @@ EXTRA_DIST = \
version.sh \
src/libzmq.pc.cmake.in \
ci_build.sh \
src/libzmq.vers \
src/version.rc.in \
tests/CMakeLists.txt \
unittests/CMakeLists.txt \
......
{
global: zmq_*;
local: *;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment