jimtcl/jimtcl-add_soname.patch

23 lines
658 B
Diff
Raw Normal View History

Index: Makefile.in
===================================================================
--- Makefile.in.orig
+++ Makefile.in
@@ -33,7 +33,7 @@ VPATH := @srcdir@
@if JIM_STATICLIB
LIBJIM := libjim.a
@else
-LIBJIM := libjim.@LIBSOEXT@
+LIBJIM := libjim.@LIBSOEXT@.0.73
SH_LIBJIM := $(LIBJIM)
CC += $(SH_CFLAGS)
CXX += $(SH_CFLAGS)
@@ -126,7 +126,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