mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-16 18:56:54 +02:00
Fixed #395
libmsgpack.[a|so] is the library file for C++. libmsgpackc.[a|so] is the library file for C. Since version 1.0.0, the C++ parts of msgpack-c is a header only library. So libmsgpack.* shouldn't be generated. On the autotools building environment, removed libmsgpack.* generation. On the cmake building environment, replaced libmsgpack.* with libmsgpackc.* and set so-version to 2.0.0.
This commit is contained in:
@@ -1,25 +1,14 @@
|
||||
lib_LTLIBRARIES = libmsgpack.la
|
||||
# For C++
|
||||
#
|
||||
# The C++ parts of msgpack-c is a header only library,
|
||||
# so there is no libraries.
|
||||
|
||||
AM_CPPFLAGS = -I../include
|
||||
# For C
|
||||
|
||||
libmsgpack_la_SOURCES = \
|
||||
unpack.c \
|
||||
objectc.c \
|
||||
version.c \
|
||||
vrefbuffer.c \
|
||||
zone.c
|
||||
lib_LTLIBRARIES = libmsgpackc.la
|
||||
|
||||
if ENABLE_GCC_CXX_ATOMIC
|
||||
CXXFLAGS="$CXXFLAGS -DENABLE_GCC_CXX_ATOMIC"
|
||||
endif
|
||||
|
||||
|
||||
# -version-info CURRENT:REVISION:AGE
|
||||
libmsgpack_la_LDFLAGS = -version-info 4:0:0 -no-undefined
|
||||
|
||||
|
||||
# backward compatibility
|
||||
lib_LTLIBRARIES += libmsgpackc.la
|
||||
#AM_CPPFLAGS = -I../include
|
||||
AM_CFLAGS = -I../include
|
||||
|
||||
libmsgpackc_la_SOURCES = \
|
||||
unpack.c \
|
||||
@@ -28,6 +17,7 @@ libmsgpackc_la_SOURCES = \
|
||||
vrefbuffer.c \
|
||||
zone.c
|
||||
|
||||
# -version-info CURRENT:REVISION:AGE
|
||||
libmsgpackc_la_LDFLAGS = -version-info 2:0:0 -no-undefined
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user