mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +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:
		@@ -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',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user