From f5d0c6cad5bb2706e0e63f3f8f32e431ea428100 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 20 Jun 2001 00:26:06 +0000 Subject: [PATCH] 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 --- src/pl/plperl/Makefile.PL | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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', -- 2.40.0