Re: [BUGS] Bug in PL/Perl makefile

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] Bug in PL/Perl makefile
Дата
Msg-id 1119.951925224@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug in PL/Perl makefile  (David Jack Olrik <david@olrik.dk>)
Список pgsql-bugs
David Jack Olrik <david@olrik.dk> writes:
> Missing .o file in make file. Patchfile attached with this mail fixes the
> problem!

David, the plperl makefile has been completely rewritten by Mark Hollomon
in the last couple days.  I have not had time yet to check it and commit
it to CVS, but I am attaching what he sent me; would you like to try it?

            regards, tom lane

use ExtUtils::MakeMaker;
use ExtUtils::Embed;
use DynaLoader;
use Config;

#
# get the location of the Opcode module
#
my $opcode = '';
{

    $modname = 'Opcode';

    my $dir;
    foreach (@INC) {
        if (-d "$_/auto/$modname") {
            $dir = "$_/auto/$modname";
            last;
        }
    }

    if (defined $dir) {
        $opcode = DynaLoader::dl_findfile("-L$dir", $modname);
    }

}

WriteMakefile( 'NAME' => 'plperl',
    dynamic_lib => { 'OTHERLDFLAGS' => "$opcode -L\$(LIBPQDIR) -lpq @{[ldopts()]}" } ,
    INC => '-I$(LIBPQDIR) -I$(SRCDIR)/include -I$(SRCDIR)/backend',
    XS => { 'SPI.xs' => 'SPI.c' },
    OBJECT => 'plperl.o eloglvl.o SPI.o',
    );

sub MY::post_initialize {

q[
SRCDIR=../../../src
include $(SRCDIR)/Makefile.global
];

}

sub MY::install {

q[
install :: all
    cp $(INST_DYNAMIC) $(LIBDIR)
];

}



В списке pgsql-bugs по дате отправления:

Предыдущее
От: David Jack Olrik
Дата:
Сообщение: Bug in PL/Perl makefile
Следующее
От: Ryan Mooney
Дата:
Сообщение: Inet sorting patch