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
56b40a8f
Commit
56b40a8f
authored
Oct 05, 2018
by
Ben Wolsieffer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link to libatomic when necessary (eg. on armv6l)
parent
6a51c038
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
configure.ac
configure.ac
+16
-0
Makefile.am
src/Makefile.am
+2
-2
tests.sh
tests.sh
+2
-2
No files found.
configure.ac
View file @
56b40a8f
...
...
@@ -165,6 +165,22 @@ AS_IF([test "$with_zlib" != no], [
])
AM_CONDITIONAL([HAVE_ZLIB], [test $HAVE_ZLIB = 1])
dnl On some platforms, std::atomic needs a helper library
AC_MSG_CHECKING(whether -latomic is needed)
AC_LINK_IFELSE([AC_LANG_SOURCE([[
#include <atomic>
#include <cstdint>
std::atomic<std::int64_t> v;
int main() {
return v;
}
]])], STD_ATOMIC_NEED_LIBATOMIC=no, STD_ATOMIC_NEED_LIBATOMIC=yes)
AC_MSG_RESULT($STD_ATOMIC_NEED_LIBATOMIC)
if test "x$STD_ATOMIC_NEED_LIBATOMIC" = xyes; then
LIBATOMIC_LIBS="-latomic"
fi
AC_SUBST([LIBATOMIC_LIBS])
AS_IF([test "$with_protoc" != "no"], [
PROTOC=$with_protoc
AS_IF([test "$with_protoc" = "yes"], [
...
...
src/Makefile.am
View file @
56b40a8f
...
...
@@ -166,7 +166,7 @@ nobase_include_HEADERS = \
lib_LTLIBRARIES
=
libprotobuf-lite.la libprotobuf.la libprotoc.la
libprotobuf_lite_la_LIBADD
=
$(PTHREAD_LIBS)
libprotobuf_lite_la_LIBADD
=
$(PTHREAD_LIBS)
$(LIBATOMIC_LIBS)
libprotobuf_lite_la_LDFLAGS
=
-version-info
17:0:0
-export-dynamic
-no-undefined
if
HAVE_LD_VERSION_SCRIPT
libprotobuf_lite_la_LDFLAGS
+=
-Wl
,--version-script
=
$(srcdir)
/libprotobuf-lite.map
...
...
@@ -212,7 +212,7 @@ libprotobuf_lite_la_SOURCES = \
google/protobuf/io/zero_copy_stream.cc
\
google/protobuf/io/zero_copy_stream_impl_lite.cc
libprotobuf_la_LIBADD
=
$(PTHREAD_LIBS)
libprotobuf_la_LIBADD
=
$(PTHREAD_LIBS)
$(LIBATOMIC_LIBS)
libprotobuf_la_LDFLAGS
=
-version-info
17:0:0
-export-dynamic
-no-undefined
if
HAVE_LD_VERSION_SCRIPT
libprotobuf_la_LDFLAGS
+=
-Wl
,--version-script
=
$(srcdir)
/libprotobuf.map
...
...
tests.sh
View file @
56b40a8f
...
...
@@ -16,8 +16,8 @@ internal_build_cpp() {
git submodule update
--init
--recursive
./autogen.sh
./configure
CXXFLAGS
=
"-fPIC"
# -fPIC is needed for python cpp test.
# See python/setup.py for more details
./configure
CXXFLAGS
=
"-fPIC
-std=c++11
"
# -fPIC is needed for python cpp test.
# See python/setup.py for more details
make
-j4
}
...
...
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