Re: Apple xCode 2.0 and linking with libpq.a - Mailing list pgsql-interfaces

From Ashley Clark
Subject Re: Apple xCode 2.0 and linking with libpq.a
Date
Msg-id 26BFF06A-03F9-47C4-9E72-096C0F75699B@ghoti.org
Whole thread Raw
In response to Apple xCode 2.0 and linking with libpq.a  (Stephane Pinel <spinel@noos.fr>)
List pgsql-interfaces
I've noticed this too and for a quick fix you can move the  
libpq*.dylib files out of that directory and it should use the static  
library.

On Jun 15, 2005, at 4:44 PM, Stephane Pinel wrote:

> Hello,
>
> I have a project that used to compile and link fine with Apple  
> xCode 1.5 on Panther (MacOS X 10.3.X).
>
> Since I've upgraded to MacOS X 10.4.1 and Apple xCode 2, my project  
> seems to search for a dynamic link
> (libpq.dylib) instead of libpq.a as setted in the project. First I  
> haven't seen this because all my Macs have
> a PostgreSQL installed. But from an other Mac, where there is no  
> PostgreSQL install, my app didn't work and
> apparently looked at a libpq.dylib.
>
> Any idea on how to set up properly my xCode 2 project in order to  
> link statically, just like before ?
>
> Thank you very much.
>
> Stephane
>
>
> ---------------------------(end of  
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to  
> majordomo@postgresql.org
>
>



pgsql-interfaces by date:

Previous
From: Christof Petig
Date:
Subject: Re: libecpg (8.0 and CVS) hits a gcc bug on powerpc
Next
From: "Behzad Mahini"
Date:
Subject: Re: making contact via perl