OSDN Git Service

Apparently, on some systems, ExtUtils::Embed and MakeMaker are slightly
authorBruce Momjian <bruce@momjian.us>
Wed, 20 Jun 2001 00:26:06 +0000 (00:26 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 20 Jun 2001 00:26:06 +0000 (00:26 +0000)
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

index 2d6ced9..32d663a 100644 (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',