build: only set soname on shared object builds
This commit is contained in:
parent
f22163c233
commit
55c150abfc
@ -151,7 +151,7 @@ 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
|
||||
SO_LDFLAGS = -Wl,-soname,libuv.so.0.10
|
||||
endif
|
||||
|
||||
RUNNER_LDFLAGS += $(LDFLAGS)
|
||||
@ -161,7 +161,7 @@ libuv.a: $(OBJS)
|
||||
|
||||
libuv.$(SOEXT): override CFLAGS += -fPIC
|
||||
libuv.$(SOEXT): $(OBJS:%.o=%.pic.o)
|
||||
$(CC) -shared -o $@ $^ $(LDFLAGS)
|
||||
$(CC) -shared -o $@ $^ $(LDFLAGS) $(SO_LDFLAGS)
|
||||
|
||||
include/uv-private/uv-unix.h: \
|
||||
include/uv-private/uv-bsd.h \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user