76d59a
Set the major .so version to 2 for all unixODBC shared libraries, to reflect
76d59a
the incompatible ABI changes in 2.2.14.
76d59a
76d59a
diff -up unixODBC-2.3.3/Drivers/MiniSQL/Makefile.am.soname unixODBC-2.3.3/Drivers/MiniSQL/Makefile.am
76d59a
--- unixODBC-2.3.3/Drivers/MiniSQL/Makefile.am.soname	2015-08-22 18:39:16.000000000 +0200
76d59a
+++ unixODBC-2.3.3/Drivers/MiniSQL/Makefile.am	2015-08-25 12:27:47.005775376 +0200
76d59a
@@ -193,6 +193,6 @@ EXTRA_DIST = \
76d59a
 	_sqlFreeEnv.c \
76d59a
 	_sqlFreeStmt.c 
76d59a
 
76d59a
-libodbcmini_la_LDFLAGS = -no-undefined -version-info 1:0:0 \
76d59a
+libodbcmini_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION) \
76d59a
 	-L@msql_libraries@ -lmsql -module
76d59a
 
76d59a
diff -up unixODBC-2.3.3/Drivers/nn/Makefile.am.soname unixODBC-2.3.3/Drivers/nn/Makefile.am
76d59a
--- unixODBC-2.3.3/Drivers/nn/Makefile.am.soname	2014-05-05 10:27:13.000000000 +0200
76d59a
+++ unixODBC-2.3.3/Drivers/nn/Makefile.am	2015-08-25 12:27:47.007775386 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libnn.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include -I.
76d59a
 
76d59a
-libnn_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+libnn_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 EXTRA_DIST = \
76d59a
 	nnconfig.h \
76d59a
diff -up unixODBC-2.3.3/Drivers/Postgre7.1/Makefile.am.soname unixODBC-2.3.3/Drivers/Postgre7.1/Makefile.am
76d59a
--- unixODBC-2.3.3/Drivers/Postgre7.1/Makefile.am.soname	2014-05-05 10:27:13.000000000 +0200
76d59a
+++ unixODBC-2.3.3/Drivers/Postgre7.1/Makefile.am	2015-08-25 12:27:47.009775396 +0200
76d59a
@@ -3,7 +3,7 @@ lib_LTLIBRARIES = libodbcpsql.la
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
 libodbcpsql_la_LDFLAGS = \
76d59a
-	-version-info 2:0:0 \
76d59a
+	-version-info $(LIB_VERSION) \
76d59a
 	-no-undefined \
76d59a
 	$(LIBSOCKET) $(LIBNSL) \
76d59a
 	-export-dynamic \
76d59a
diff -up unixODBC-2.3.3/Drivers/template/Makefile.am.soname unixODBC-2.3.3/Drivers/template/Makefile.am
76d59a
--- unixODBC-2.3.3/Drivers/template/Makefile.am.soname	2014-05-05 10:27:13.000000000 +0200
76d59a
+++ unixODBC-2.3.3/Drivers/template/Makefile.am	2015-08-25 12:27:47.012775410 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libtemplate.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include -I. $(LTDLINCL)
76d59a
 
76d59a
-libtemplate_la_LDFLAGS = -no-undefined  -version-info 1:0:0 
76d59a
+libtemplate_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) 
76d59a
 
76d59a
 EXTRA_DIST = \
76d59a
 	driver.h \
76d59a
diff -up unixODBC-2.3.3/DRVConfig/drvcfg1/Makefile.am.soname unixODBC-2.3.3/DRVConfig/drvcfg1/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/drvcfg1/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/drvcfg1/Makefile.am	2015-08-25 12:27:47.014775420 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libodbcdrvcfg1S.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-libodbcdrvcfg1S_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+libodbcdrvcfg1S_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 libodbcdrvcfg1S_la_SOURCES = drvcfg1.c
76d59a
 	
76d59a
diff -up unixODBC-2.3.3/DRVConfig/drvcfg2/Makefile.am.soname unixODBC-2.3.3/DRVConfig/drvcfg2/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/drvcfg2/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/drvcfg2/Makefile.am	2015-08-25 12:27:47.016775430 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libodbcdrvcfg2S.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-libodbcdrvcfg2S_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+libodbcdrvcfg2S_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 libodbcdrvcfg2S_la_SOURCES = drvcfg2.c
76d59a
 	
76d59a
diff -up unixODBC-2.3.3/DRVConfig/esoob/Makefile.am.soname unixODBC-2.3.3/DRVConfig/esoob/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/esoob/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/esoob/Makefile.am	2015-08-25 12:27:47.017775434 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libesoobS.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-libesoobS_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+libesoobS_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 libesoobS_la_SOURCES = esoobS.c
76d59a
 	
76d59a
diff -up unixODBC-2.3.3/DRVConfig/Mimer/Makefile.am.soname unixODBC-2.3.3/DRVConfig/Mimer/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/Mimer/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/Mimer/Makefile.am	2015-08-25 12:27:47.019775444 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libmimerS.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-libmimerS_la_LDFLAGS = -no-undefined -version-info 1:0:0 -module
76d59a
+libmimerS_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 libmimerS_la_SOURCES = mimerS.c
76d59a
 	
76d59a
diff -up unixODBC-2.3.3/DRVConfig/MiniSQL/Makefile.am.soname unixODBC-2.3.3/DRVConfig/MiniSQL/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/MiniSQL/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/MiniSQL/Makefile.am	2015-08-25 12:27:47.020775449 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libodbcminiS.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-libodbcminiS_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+libodbcminiS_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 libodbcminiS_la_SOURCES = odbcminiS.c
76d59a
 	
76d59a
diff -up unixODBC-2.3.3/DRVConfig/MySQL/Makefile.am.soname unixODBC-2.3.3/DRVConfig/MySQL/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/MySQL/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/MySQL/Makefile.am	2015-08-25 12:27:47.023775464 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libodbcmyS.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-libodbcmyS_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+libodbcmyS_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 libodbcmyS_la_SOURCES = odbcmyS.c
76d59a
 	
76d59a
diff -up unixODBC-2.3.3/DRVConfig/nn/Makefile.am.soname unixODBC-2.3.3/DRVConfig/nn/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/nn/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/nn/Makefile.am	2015-08-25 12:27:47.024775469 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libodbcnnS.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-libodbcnnS_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+libodbcnnS_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 libodbcnnS_la_SOURCES = drvcfg.c
76d59a
 	
76d59a
diff -up unixODBC-2.3.3/DRVConfig/oplodbc/Makefile.am.soname unixODBC-2.3.3/DRVConfig/oplodbc/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/oplodbc/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/oplodbc/Makefile.am	2015-08-25 12:27:47.026775478 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = liboplodbcS.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-liboplodbcS_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+liboplodbcS_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 liboplodbcS_la_SOURCES = oplodbc.c
76d59a
 	
76d59a
diff -up unixODBC-2.3.3/DRVConfig/Oracle/Makefile.am.soname unixODBC-2.3.3/DRVConfig/Oracle/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/Oracle/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/Oracle/Makefile.am	2015-08-25 12:27:47.027775483 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = liboraodbcS.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-liboraodbcS_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+liboraodbcS_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 liboraodbcS_la_SOURCES = oraodbcS.c
76d59a
 	
76d59a
diff -up unixODBC-2.3.3/DRVConfig/PostgreSQL/Makefile.am.soname unixODBC-2.3.3/DRVConfig/PostgreSQL/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/PostgreSQL/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/PostgreSQL/Makefile.am	2015-08-25 12:27:47.029775493 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libodbcpsqlS.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-libodbcpsqlS_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+libodbcpsqlS_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 libodbcpsqlS_la_SOURCES = odbcpsqlS.c
76d59a
 	
76d59a
diff -up unixODBC-2.3.3/DRVConfig/sapdb/Makefile.am.soname unixODBC-2.3.3/DRVConfig/sapdb/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/sapdb/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/sapdb/Makefile.am	2015-08-25 12:27:47.031775503 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libsapdbS.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-libsapdbS_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+libsapdbS_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 libsapdbS_la_SOURCES = sapdb.c
76d59a
 
76d59a
diff -up unixODBC-2.3.3/DRVConfig/tds/Makefile.am.soname unixODBC-2.3.3/DRVConfig/tds/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/tds/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/tds/Makefile.am	2015-08-25 12:27:47.032775507 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libtdsS.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-libtdsS_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+libtdsS_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 libtdsS_la_SOURCES = tdsS.c
76d59a
 	
76d59a
diff -up unixODBC-2.3.3/DRVConfig/txt/Makefile.am.soname unixODBC-2.3.3/DRVConfig/txt/Makefile.am
76d59a
--- unixODBC-2.3.3/DRVConfig/txt/Makefile.am.soname	2014-05-05 10:26:41.000000000 +0200
76d59a
+++ unixODBC-2.3.3/DRVConfig/txt/Makefile.am	2015-08-25 12:27:47.034775517 +0200
76d59a
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libodbctxtS.la
76d59a
 
76d59a
 AM_CPPFLAGS = -I@top_srcdir@/include $(LTDLINCL)
76d59a
 
76d59a
-libodbctxtS_la_LDFLAGS = -no-undefined  -version-info 1:0:0 -module
76d59a
+libodbctxtS_la_LDFLAGS = -no-undefined  -version-info $(LIB_VERSION) -module
76d59a
 
76d59a
 libodbctxtS_la_SOURCES = drvcfg.c
76d59a