[unixODBC-dev] [ODBC] Is the linking with -lodbc necessary? (--with-odbc)
praiskup at redhat.com
Wed Nov 13 10:41:40 GMT 2013
[+cc back psqlodbc]
On Tuesday, November 12, 2013 11:46:39 Nick Gorham wrote:
> On 11/11/13 17:50, Pavel Raiskup wrote:
> > Hello all!
> > Long story short: Is there a need to link psqlodbcw.so plugin against
> > libodbc.so? Principal problem: That library provides ABI for applications
> > - not for plugins; at least it seem to be like that.
> > I tried to remove this linking by following tweak:
> As you have noticed, there is code in the DM to try and avoid what you
> describe. But AFAIK, a driver would normally link against -lodbcinst to
> gain access to the ini functions SQLGetPrivateProfileString and so on,
> no need to link to the driver manager (-lodbc) that is for application
> land use.
Hello Nick, thanks for looking at the problem from unixODBC perspective!
Would not there be better rather block loading badly linked plugins rather
than just try to expect that the linking is done the same way on all arches?
I attached possible solution.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 20700 bytes
Desc: not available
More information about the unixODBC-dev