diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile
index abe5050360d4136ad3f65842b775b712b3313ff4..3e6228a6c5b101a0c7c552d576681a397de1abb5 100644
--- a/src/interfaces/ecpg/ecpglib/Makefile
+++ b/src/interfaces/ecpg/ecpglib/Makefile
@@ -15,7 +15,7 @@ include $(top_builddir)/src/Makefile.global
 
 PGFILEDESC = "ECPG - embedded SQL in C"
 NAME= ecpg
-SO_MAJOR_VERSION= 7
+SO_MAJOR_VERSION= 6
 SO_MINOR_VERSION= $(MAJORVERSION)
 
 override CPPFLAGS := -I../include -I$(top_srcdir)/src/interfaces/ecpg/include \