aboutsummaryrefslogtreecommitdiff
path: root/src/lib.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.mk')
-rw-r--r--src/lib.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.mk b/src/lib.mk
index 947492c1..f98e25ce 100644
--- a/src/lib.mk
+++ b/src/lib.mk
@@ -30,11 +30,15 @@ INCMODE?= 0444
all: ${_LIBS}
+
+
lib${LIB}.a: ${OBJS} ${STATICOBJS}
@${ECHO} building static library $@
${AR} rc $@ $^
${RANLIB} $@
+${SHLIB_NAME}: ${VERSION_MAP}
+LDFLAGS+= -Wl,--version-script=${VERSION_MAP}
${SHLIB_NAME}: ${SOBJS}
@${ECHO} building shared library $@