diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-06-20 00:26:06 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-06-20 00:26:06 +0000 |
commit | f5d0c6cad5bb2706e0e63f3f8f32e431ea428100 (patch) | |
tree | 91cf6d19c8b51f8a7836e71faab661c572f3899c | |
parent | 7aac048b597b840fb4925a28a96d009885bf9532 (diff) | |
download | postgresql-f5d0c6cad5bb2706e0e63f3f8f32e431ea428100.tar.gz postgresql-f5d0c6cad5bb2706e0e63f3f8f32e431ea428100.zip |
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
-rw-r--r-- | src/pl/plperl/Makefile.PL | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pl/plperl/Makefile.PL b/src/pl/plperl/Makefile.PL index 2d6ced9dc07..32d663a6301 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', |