From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ralf Hasemann <rhasemann@mac.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Linker Confusion.....
Date: Thu, 23 Jul 2009 17:39:39 -0400
Message-ID: <29004.1248385179@sss.pgh.pa.us> (raw)
In-Reply-To: <95235687-24A2-47BD-B743-71DBD10A7A0E@mac.com>
References: <95235687-24A2-47BD-B743-71DBD10A7A0E@mac.com>
Ralf Hasemann <rhasemann@mac.com> writes:
> How does the linker know to link against libpq.5.dylib when libpq.a is
> the only lib in my project?
You'd be best advised to ask that on an OSX development list; it's not
particularly a Postgres question, but a question of the behavior of the
development tools on that platform.
Mind you, the above behavior is probably *good*, and I don't recommend
you try to override it. Statically linked libraries are a real pain
in the neck when it comes time for a software update. But exactly how
the toolchain you're using finds the dynamic library, I don't know.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, rhasemann@mac.com
Subject: Re: Linker Confusion.....
In-Reply-To: <29004.1248385179@sss.pgh.pa.us>
* 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