Sven Willenberger <sven(at)dmv(dot)com> writes:
> it looks like the sed line is stripping out pgac_tmp2 from the pgac_tmp1
> leaving the system to use the default perl libperl.so.
> when I modified perl_embed_ldflags to not remove the -R line, the
> compile works and links to the proper libperl.so
It worked for you, but not necessarily for other people. This thread
may be instructive:
http://archives.postgresql.org/pgsql-bugs/2004-11/msg00181.php
regards, tom lane