Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
13d165de
Commit
13d165de
authored
Mar 10, 2017
by
Alexandros Frantzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide unnecessary exported library symbols
parent
a69bc9de
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
0 deletions
+61
-0
configure.ac
configure.ac
+19
-0
Makefile.am
src/Makefile.am
+15
-0
libprotobuf-lite.map
src/libprotobuf-lite.map
+9
-0
libprotobuf.map
src/libprotobuf.map
+9
-0
libprotoc.map
src/libprotoc.map
+9
-0
No files found.
configure.ac
View file @
13d165de
...
...
@@ -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 <<EOF
{
global:
main;
local:
*;
};
EOF
AC_LINK_IFELSE(
[AC_LANG_SOURCE([int main() { return 0; }])],
[have_ld_version_script=yes; AC_MSG_RESULT(yes)],
[have_ld_version_script=no; AC_MSG_RESULT(no)])
LDFLAGS=$save_LDFLAGS
AM_CONDITIONAL([HAVE_LD_VERSION_SCRIPT], [test "$have_ld_version_script" == "yes"])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdlib.h unistd.h])
...
...
src/Makefile.am
View file @
13d165de
...
...
@@ -180,6 +180,10 @@ lib_LTLIBRARIES = libprotobuf-lite.la libprotobuf.la libprotoc.la
libprotobuf_lite_la_LIBADD
=
$(PTHREAD_LIBS)
libprotobuf_lite_la_LDFLAGS
=
-version-info
12:0:0
-export-dynamic
-no-undefined
if
HAVE_LD_VERSION_SCRIPT
libprotobuf_lite_la_LDFLAGS
+=
-Wl
,--version-script
=
$(srcdir)
/libprotobuf-lite.map
EXTRA_libprotobuf_lite_la_DEPENDENCIES
=
libprotobuf-lite.map
endif
libprotobuf_lite_la_SOURCES
=
\
google/protobuf/stubs/atomicops_internals_x86_gcc.cc
\
google/protobuf/stubs/atomicops_internals_x86_msvc.cc
\
...
...
@@ -221,6 +225,10 @@ libprotobuf_lite_la_SOURCES = \
libprotobuf_la_LIBADD
=
$(PTHREAD_LIBS)
libprotobuf_la_LDFLAGS
=
-version-info
12:0:0
-export-dynamic
-no-undefined
if
HAVE_LD_VERSION_SCRIPT
libprotobuf_la_LDFLAGS
+=
-Wl
,--version-script
=
$(srcdir)
/libprotobuf.map
EXTRA_libprotobuf_la_DEPENDENCIES
=
libprotobuf.map
endif
libprotobuf_la_SOURCES
=
\
$(libprotobuf_lite_la_SOURCES)
\
google/protobuf/any.pb.cc
\
...
...
@@ -305,6 +313,10 @@ nodist_libprotobuf_la_SOURCES = $(nodist_libprotobuf_lite_la_SOURCES)
libprotoc_la_LIBADD
=
$(PTHREAD_LIBS)
libprotobuf.la
libprotoc_la_LDFLAGS
=
-version-info
12:0:0
-export-dynamic
-no-undefined
if
HAVE_LD_VERSION_SCRIPT
libprotoc_la_LDFLAGS
+=
-Wl
,--version-script
=
$(srcdir)
/libprotoc.map
EXTRA_libprotoc_la_DEPENDENCIES
=
libprotoc.map
endif
libprotoc_la_SOURCES
=
\
google/protobuf/compiler/code_generator.cc
\
google/protobuf/compiler/command_line_interface.cc
\
...
...
@@ -580,6 +592,9 @@ EXTRA_DIST = \
google/protobuf/compiler/ruby/ruby_generated_code_pb.rb
\
google/protobuf/compiler/package_info.h
\
google/protobuf/compiler/zip_output_unittest.sh
\
libprotobuf-lite.map
\
libprotobuf.map
\
libprotoc.map
\
README.md
protoc_lite_outputs
=
\
...
...
src/libprotobuf-lite.map
0 → 100644
View file @
13d165de
{
global:
extern "C++" {
*google*;
};
local:
*;
};
src/libprotobuf.map
0 → 100644
View file @
13d165de
{
global:
extern "C++" {
*google*;
};
local:
*;
};
src/libprotoc.map
0 → 100644
View file @
13d165de
{
global:
extern "C++" {
*google*;
};
local:
*;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment