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
This commit is contained in:
Bruce Momjian 2001-06-20 00:26:06 +00:00
parent 7aac048b59
commit f5d0c6cad5
1 changed files with 4 additions and 1 deletions

View File

@ -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',