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.
>