$OpenBSD: patch-src_interfaces_ecpg_compatlib_Makefile,v 1.2 2007/01/17 16:47:25 mbalmer Exp $
--- src/interfaces/ecpg/compatlib/Makefile.orig	Mon Sep 11 00:07:02 2006
+++ src/interfaces/ecpg/compatlib/Makefile	Mon Jan 15 18:08:43 2007
@@ -13,8 +13,8 @@ top_builddir = ../../../..
 include $(top_builddir)/src/Makefile.global
 
 NAME= ecpg_compat
-SO_MAJOR_VERSION= 2
-SO_MINOR_VERSION= 2
+SO_MAJOR_VERSION= ${LIBecpg_compat_MAJOR}
+SO_MINOR_VERSION= ${LIBecpg_compat_MINOR}
 DLTYPE= library
 
 override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
