summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorTomáš Chvátal <tchvatal@suse.com>2017-01-05 16:06:10 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2017-01-13 10:17:13 +0000
commit3f5584526fd4e8290dac033e1cf3d64acd25d893 (patch)
tree055eaf148ed60da5182e6033d7a74a387765f886 /dbaccess
parentafe64b6f0ab839955690f07929268a3d389279bf (diff)
unixODBC changed soname to .2 so reflect it
we dlopen this library and thus we should be able to find it with any soname, so far .1 and .2 seem to be used. Also now the load order on linux is: .so.2 -> .so.1 -> .so Change-Id: Idcd284fada1acdfe8dde46c3056c21b792777280 Reviewed-on: https://gerrit.libreoffice.org/32755 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/odbcconfig.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/dbaccess/source/ui/dlg/odbcconfig.cxx b/dbaccess/source/ui/dlg/odbcconfig.cxx
index cd1b583e1840..a880f3cccef5 100644
--- a/dbaccess/source/ui/dlg/odbcconfig.cxx
+++ b/dbaccess/source/ui/dlg/odbcconfig.cxx
@@ -38,8 +38,9 @@
#ifdef MACOSX
#define ODBC_LIBRARY "libiodbc.dylib"
#else
+#define ODBC_LIBRARY_PLAIN "libodbc.so"
#define ODBC_LIBRARY_1 "libodbc.so.1"
-#define ODBC_LIBRARY "libodbc.so"
+#define ODBC_LIBRARY "libodbc.so.2"
#endif
#endif
@@ -124,6 +125,10 @@ OOdbcEnumeration::OOdbcEnumeration()
if ( !bLoaded )
bLoaded = load(ODBC_LIBRARY_1);
#endif
+#ifdef ODBC_LIBRARY_PLAIN
+ if ( !bLoaded )
+ bLoaded = load(ODBC_LIBRARY_PLAIN);
+#endif
if ( bLoaded )
{