$OpenBSD: patch-mlterm_Makefile_in,v 1.4 2015/11/04 13:49:34 dcoppa Exp $
--- mlterm/Makefile.in.orig	Sat Oct 24 18:18:14 2015
+++ mlterm/Makefile.in	Wed Nov  4 13:42:59 2015
@@ -30,6 +30,8 @@ OBJ = ml_char_encoding.o ml_color.o ml_edit.o ml_edit_
 	ml_pty.o ml_termcap.o ml_line_shape.o @ML_PTY_OBJ@
 
 LIBNAME = libmlterm
+MAJOR = ${LIBmlterm_core_VERSION:R}
+MINOR = ${LIBmlterm_core_VERSION:E}
 
 LIBTOOL_CC = $(LIBTOOL) --mode=compile $(CC) $(CFLAGS)
 LIBTOOL_LINK = $(LIBTOOL) --mode=link $(CC) @LDFLAGS@
@@ -48,7 +50,7 @@ $(LIBNAME)_core.a : $(OBJ_CORE)
 
 $(LIBNAME)_core.la : $(OBJ_CORE)
 	$(LIBTOOL_LINK) -o $(LIBNAME)_core.la $(OBJ_CORE:.o=.lo) \
-	@NO_UNDEFINED_FLAG@ -rpath $(libdir) -avoid-version @LKIK@ $(LIBS)
+	@NO_UNDEFINED_FLAG@ -rpath $(libdir) -version-info $(MAJOR):$(MINOR):0 @LKIK@ $(LIBS)
 
 install : $(LIBDIR)
 	if test "`echo @LMLTERM_CORE@|grep .la`" != "" ; then \
