build: set soname in shared library
This commit is contained in:
parent
96a2df8084
commit
3eb6eb35cc
@ -151,6 +151,11 @@ CPPFLAGS += -Isrc/unix
|
||||
CFLAGS += -DHAVE_DTRACE
|
||||
endif
|
||||
|
||||
ifneq (darwin,$(PLATFORM))
|
||||
# Must correspond with UV_VERSION_MAJOR and UV_VERSION_MINOR in src/version.c
|
||||
LDFLAGS += -Wl,-soname,libuv.so.0.10
|
||||
endif
|
||||
|
||||
libuv.a: $(OBJS)
|
||||
$(AR) rcs $@ $^
|
||||
|
||||
|
||||
@ -24,7 +24,9 @@
|
||||
/*
|
||||
* Versions with an even minor version (e.g. 0.6.1 or 1.0.4) are API and ABI
|
||||
* stable. When the minor version is odd, the API can change between patch
|
||||
* releases.
|
||||
* releases. Make sure you update the -soname directives in config-unix.mk
|
||||
* and uv.gyp whenever you bump UV_VERSION_MAJOR or UV_VERSION_MINOR (but
|
||||
* not UV_VERSION_PATCH.)
|
||||
*/
|
||||
|
||||
#undef UV_VERSION_MAJOR /* TODO(bnoordhuis) Remove in v0.11. */
|
||||
|
||||
9
uv.gyp
9
uv.gyp
@ -164,9 +164,16 @@
|
||||
],
|
||||
},
|
||||
'conditions': [
|
||||
['"<(library)" == "shared_library"', {
|
||||
['library=="shared_library"', {
|
||||
'cflags': [ '-fPIC' ],
|
||||
}],
|
||||
['library=="shared_library" and OS!="mac"', {
|
||||
'link_settings': {
|
||||
# Must correspond with UV_VERSION_MAJOR and UV_VERSION_MINOR
|
||||
# in src/version.c
|
||||
'libraries': [ '-Wl,-soname,libuv.so.0.10' ],
|
||||
},
|
||||
}],
|
||||
],
|
||||
}],
|
||||
[ 'OS=="linux" or OS=="mac"', {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user