From: | Sandeep Thakkar <sandeep(dot)thakkar(at)enterprisedb(dot)com> |
---|---|
To: | "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org> |
Subject: | psqlodbc build with libpq on OS X |
Date: | 2014-08-18 11:50:55 |
Message-ID: | CANFyU96JwSinVV23yYZ1d+h1F2Y1H4Y9JQjWxwgxkg_RKjNakA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
Hi
We were building psqlodbc-09.03.0300 on OS X with configure options as
"--disable-dependency-tracking --with-iodbc --with-libpq=<PG_INSTALL_PATH>
--prefix=<INSTALL_PATH>
" and found that libpq was being linked from /usr/lib and not from the
$PG_INSTALL_PATH.. May be because the system iodbc-config returns:
$ iodbc-config --libs
-L/usr/lib -liodbc -liodbcinst"
To make sure it picks the libpq from the Server installation that we built,
I had to patch configure script:
--
--- configure.org 2014-08-18 16:22:19.484004002 +0500
+++ configure 2014-08-18 16:22:55.537736693 +0500
@@ -4301,7 +4301,7 @@
if test -d "$with_libpq"; then
PATH="$PATH:$with_libpq/bin"
CPPFLAGS="$CPPFLAGS -I$with_libpq/include"
- LDFLAGS="$LDFLAGS -L$with_libpq/lib"
+ LDFLAGS="-L$with_libpq/lib $LDFLAGS"
else
if test -x "$with_libpq"; then
PG_CONFIG=$with_libpq
--
Does this looks fine?
--
Sandeep Thakkar
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2014-08-18 12:21:15 | Re: psqlodbc build with libpq on OS X |
Previous Message | Adrian Klaver | 2014-08-14 20:00:01 | Re: Postgress, report opening multiple connections |