jimtcl/jimtcl-add_soname.patch

23 lines
656 B
Diff
Raw Normal View History

Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -36,7 +36,7 @@ VPATH := @srcdir@
@if JIM_STATICLIB
LIBJIM := libjim.a
@else
-LIBJIM := libjim@LIBSOEXT@
+LIBJIM := libjim@LIBSOEXT@.0.75
SH_LIBJIM := $(LIBJIM)
CC += $(SH_CFLAGS)
CXX += $(SH_CFLAGS)
@@ -133,7 +133,7 @@ $(LIBJIM): $(OBJS)
$(RANLIB) $@
@else
$(LIBJIM): $(OBJS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(SH_LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname,libjim.so.0.73 $(SH_LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
@endif
# Note that $> $^ is for compatibility with both GNU make and BSD make