From: Bruce Momjian Date: Wed, 20 Jun 2001 00:26:06 +0000 (+0000) Subject: Apparently, on some systems, ExtUtils::Embed and MakeMaker are slightly X-Git-Tag: REL7_2_BETA1~1001 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5d0c6cad5bb2706e0e63f3f8f32e431ea428100;p=postgresql Apparently, on some systems, ExtUtils::Embed and MakeMaker are slightly broken, and its impossible to make a shared library when compiling with both CCDLFLAGS and LDDLFAGS, you have to pick one or the other. Alex Pilosov --- diff --git a/src/pl/plperl/Makefile.PL b/src/pl/plperl/Makefile.PL index 2d6ced9dc0..32d663a630 100644 --- a/src/pl/plperl/Makefile.PL +++ b/src/pl/plperl/Makefile.PL @@ -29,8 +29,11 @@ EndOfMakefile exit(0); } +my $ldopts=ldopts(); +$ldopts=~s/$Config{ccdlflags}//; + WriteMakefile( 'NAME' => 'plperl', - dynamic_lib => { 'OTHERLDFLAGS' => ldopts() } , + dynamic_lib => { 'OTHERLDFLAGS' => $ldopts } , INC => "$ENV{EXTRA_INCLUDES}", XS => { 'SPI.xs' => 'SPI.c' }, OBJECT => 'plperl.o eloglvl.o SPI.o',