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
|
CFLAGS += -DHAVE_DTRACE
|
||||||
endif
|
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)
|
libuv.a: $(OBJS)
|
||||||
$(AR) rcs $@ $^
|
$(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
|
* 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
|
* 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. */
|
#undef UV_VERSION_MAJOR /* TODO(bnoordhuis) Remove in v0.11. */
|
||||||
|
|||||||
9
uv.gyp
9
uv.gyp
@ -164,9 +164,16 @@
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['"<(library)" == "shared_library"', {
|
['library=="shared_library"', {
|
||||||
'cflags': [ '-fPIC' ],
|
'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"', {
|
[ 'OS=="linux" or OS=="mac"', {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user