$OpenBSD: patch-src_interfaces_ecpg_compatlib_Makefile,v 1.7 2012/09/24 19:57:02 pea Exp $
--- src/interfaces/ecpg/compatlib/Makefile.orig	Fri May 11 00:35:09 2012
+++ src/interfaces/ecpg/compatlib/Makefile	Tue May 15 10:24:33 2012
@@ -14,8 +14,8 @@ top_builddir = ../../../..
 include $(top_builddir)/src/Makefile.global
 
 NAME= ecpg_compat
-SO_MAJOR_VERSION= 3
-SO_MINOR_VERSION= 4
+SO_MAJOR_VERSION= ${LIBecpg_compat_MAJOR}
+SO_MINOR_VERSION= ${LIBecpg_compat_MINOR}
 
 override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \
 	-I$(libpq_srcdir) -I$(top_srcdir)/src/include/utils $(CPPFLAGS)
