Re: libpgeasy on AIX - Mailing list pgsql-interfaces

From Craig Gibson
Subject Re: libpgeasy on AIX
Date
Msg-id 1078751854.29667.13.camel@ptolomy.vodacom.co.za
Whole thread Raw
In response to Re: libpgeasy on AIX  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-interfaces
Thanks! That gave me the lead...

-shared will invoke AIX's linker: -rpath is a GNU ld option. The AIX
equivalent is -blibpath. However after reading through
http://www-106.ibm.com/developerworks/eserver/articles/gnu.html I just
changed the Makefile by changing 
SHARED= -fpic -shared -Wl,-x,-soname,$(TARGET).so.$(SO_MAJOR_VERSION)
-Wl,-rpath,$(POSTGRES_HOME)/lib to
SHARED= -fpic -shared and then set $LIBPATH to include
/usr/local/pgsql/lib

That did the trick for me, maybe it will help someone else.

On Mon, 2004-03-01 at 22:30, Peter Eisentraut wrote:
> Bruce Momjian wrote:
> > Seems like gcc doesn't like your -x or -rpath.  Not sure why.
> 
> It's a linker option, not a gcc option.
> 



pgsql-interfaces by date:

Previous
From: "Jason C. Wells"
Date:
Subject: Success with pgtclng
Next
From: Bruce Momjian
Date:
Subject: Re: PostgreSQL: libpq, win32 build