--- postgresql-9.5.1/src/pl/plperl/GNUmakefile.orig 2015-02-10 21:34:31.287600000 +0300 +++ postgresql-9.5.1/src/pl/plperl/GNUmakefile 2015-02-10 21:35:06.732800000 +0300 @@ -36,27 +36,6 @@ PERLCHUNKS = plc_perlboot.pl plc_trusted.pl -# Perl on win32 ships with import libraries only for Microsoft Visual C++, -# which are not compatible with mingw gcc. Therefore we need to build a -# new import library to link with. -ifeq ($(PORTNAME), win32) - -perlwithver := $(subst -l,,$(filter -l%, $(perl_embed_ldflags))) -PERLDLL := $(dir $(subst ',,$(PERL)))$(perlwithver).dll -# we no longer want to include the original -l spec in SHLIB_LINK -override perl_embed_ldflags := - -OBJS += lib$(perlwithver).a - -lib$(perlwithver).a: $(perlwithver).def - dlltool --dllname $(perlwithver).dll --def $(perlwithver).def --output-lib lib$(perlwithver).a - -$(perlwithver).def: $(PERLDLL) - gendef - $^ > $@ - -endif # win32 - - SHLIB_LINK = $(perl_embed_ldflags) REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-extension=plperl --load-extension=plperlu @@ -117,6 +117,3 @@ clean distclean maintainer-clean: clean-lib rm -f SPI.c Util.c $(OBJS) perlchunks.h plperl_opmask.h rm -rf $(pg_regress_clean_files) -ifeq ($(PORTNAME), win32) - rm -f $(perlwithver).def -endif