From 55c150abfc11ad6c23674c196ed914db0f942224 Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Mon, 13 May 2013 15:48:32 -0700 Subject: [PATCH] build: only set soname on shared object builds --- config-unix.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config-unix.mk b/config-unix.mk index 10e8b6cb..347d9d77 100644 --- a/config-unix.mk +++ b/config-unix.mk @@ -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 \