mirror of
https://github.com/postgres/postgres.git
synced 2025-05-11 05:41:32 +03:00
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:
parent
7aac048b59
commit
f5d0c6cad5
@ -29,8 +29,11 @@ EndOfMakefile
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $ldopts=ldopts();
|
||||||
|
$ldopts=~s/$Config{ccdlflags}//;
|
||||||
|
|
||||||
WriteMakefile( 'NAME' => 'plperl',
|
WriteMakefile( 'NAME' => 'plperl',
|
||||||
dynamic_lib => { 'OTHERLDFLAGS' => ldopts() } ,
|
dynamic_lib => { 'OTHERLDFLAGS' => $ldopts } ,
|
||||||
INC => "$ENV{EXTRA_INCLUDES}",
|
INC => "$ENV{EXTRA_INCLUDES}",
|
||||||
XS => { 'SPI.xs' => 'SPI.c' },
|
XS => { 'SPI.xs' => 'SPI.c' },
|
||||||
OBJECT => 'plperl.o eloglvl.o SPI.o',
|
OBJECT => 'plperl.o eloglvl.o SPI.o',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user