From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: psqlodbc build with libpq on OS X
Date: Mon, 18 Aug 2014 16:29:38 +0300
Message-ID: <53F1FFC2.9090204@vmware.com> (raw)
In-Reply-To: <CANFyU94Qiu4fQ-ZRdQgCA0_h5=xAbUw7CBhYwiyuAUYTWu3t3w@mail.gmail.com>
References: <CANFyU96JwSinVV23yYZ1d+h1F2Y1H4Y9JQjWxwgxkg_RKjNakA@mail.gmail.com>
<53F1EFBB.1060100@vmware.com>
<CANFyU94Qiu4fQ-ZRdQgCA0_h5=xAbUw7CBhYwiyuAUYTWu3t3w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
On 08/18/2014 03:49 PM, Sandeep Thakkar wrote:
> May be you are right that iodbc-config should not return "-L/usr/lib". But,
> when I provide, --with-libpq=<PG_INSTALL_PATH> switch specifically,
> shoudn't it pick the libpq from there?
Well, yeah, but iodbc-config returning "-L/usr/lib" screws that up.
What's your point?
Looking closer at configure.ac, we actually have a similar issue with
pg_config. If you had libpq in the standard location, in /usr/lib/, and
libiodbc in a non-standard location, with your patch that case would go
wrong. No matter which way you order the -L's, it's going to be wrong in
the other direction. The solution is to not include standard paths like
/usr/lib in the output.
Perhaps it would be better to not use odbc_config / pg_config at all, at
least if the ./configure option is just "--with-libpq" and not
"--with-libpq=<path>". We could add just -lodbcinst and -lpq to LDFLAGS
directly, and assume that the required headers and libraries are in the
default system paths, without any -L or -I options. With that, you could
do "--with-iodbc" without a path and "--with-libpq=<PATH>", and it would
work, I think. Want to try writing a patch for that?
- Heikki
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: hlinnakangas@vmware.com, sandeep.thakkar@enterprisedb.com
Subject: Re: psqlodbc build with libpq on OS X
In-Reply-To: <53F1FFC2.9090204@vmware.com>
References: <CANFyU96JwSinVV23yYZ1d+h1F2Y1H4Y9JQjWxwgxkg_RKjNakA@mail.gmail.com> <53F1EFBB.1060100@vmware.com> <CANFyU94Qiu4fQ-ZRdQgCA0_h5=xAbUw7CBhYwiyuAUYTWu3t3w@mail.gmail.com> <53F1FFC2.9090204@vmware.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox