Sven Willenberger <sven@dmv.com> writes:
>> 2. _Or_ plperl does not go all the way to be a conformant perl-embedding
>> application. It looks at $Config{archlibexp}, but it does not follow
>> directions described in perlembed(1). In this case it's linking
>> should be fixed to respect that.
You probably want to stick an rpath into the plperl.so library. PG 8.0
does that by default, but for 7.4 I recommend something like this:
RCS file: /projects/cvsroot/pgsql-server/src/pl/plperl/GNUmakefile,v
retrieving revision 1.10
diff -r1.10 GNUmakefile
18c18
< override CFLAGS := $(filter-out -Wall -Wmissing-declarations -Wmissing-prototypes, $(CFLAGS))
---
> override CFLAGS := $(filter-out -Wall -Wmissing-declarations -Wmissing-prototypes, $(CFLAGS),
-Wl,-rpath,$(perl_archlibexp)/CORE)
(The above is taken from the Red Hat RPMs and is known to work on Linux,
but I can't swear that it works on any other platform.)
regards, tom lane