From 13d165de9e737cec750a2ab3d1ef68bb3f276c48 Mon Sep 17 00:00:00 2001 From: Alexandros Frantzis Date: Fri, 10 Mar 2017 14:25:27 +0200 Subject: Hide unnecessary exported library symbols --- configure.ac | 19 +++++++++++++++++++ src/Makefile.am | 15 +++++++++++++++ src/libprotobuf-lite.map | 9 +++++++++ src/libprotobuf.map | 9 +++++++++ src/libprotoc.map | 9 +++++++++ 5 files changed, 61 insertions(+) create mode 100644 src/libprotobuf-lite.map create mode 100644 src/libprotobuf.map create mode 100644 src/libprotoc.map diff --git a/configure.ac b/configure.ac index 6d9c2a01..531e25fb 100644 --- a/configure.ac +++ b/configure.ac @@ -93,6 +93,25 @@ ACX_CHECK_SUNCC # to the link AC_PROG_LIBTOOL +# Check whether the linker supports version scripts +AC_MSG_CHECKING([whether the linker supports version scripts]) +save_LDFLAGS=$LDFLAGS +LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" +cat > conftest.map <