Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b78428

Browse files
committed
Search for versioned perl library instead of using hardcoded name on Windows. Backpatch to release 8.3
1 parent7aace98 commit8b78428

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

‎src/pl/plperl/GNUmakefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Makefile for PL/Perl
2-
# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.36 2008/10/02 08:11:11 petere Exp $
2+
# $PostgreSQL: pgsql/src/pl/plperl/GNUmakefile,v 1.37 2009/06/05 18:29:56 adunstan Exp $
33

44
subdir = src/pl/plperl
55
top_builddir = ../../..
@@ -19,7 +19,8 @@ ifneq (,$(findstring yes, $(shared_libperl)$(allow_nonpic_in_shlib)))
1919
ifeq ($(PORTNAME), win32)
2020
perl_archlibexp :=$(subst \,/,$(perl_archlibexp))
2121
perl_privlibexp :=$(subst \,/,$(perl_privlibexp))
22-
perl_embed_ldflags = -L$(perl_archlibexp)/CORE -lperl58
22+
perl_lib :=$(basename$(notdir$(wildcard$(perl_archlibexp)/CORE/perl[5-9]*.lib)))
23+
perl_embed_ldflags = -L$(perl_archlibexp)/CORE -l$(perl_lib)
2324
overrideCPPFLAGS += -DPLPERL_HAVE_UID_GID
2425
# Perl on win32 contains /* within comment all over the header file,
2526
# so disable this warning.

‎src/tools/msvc/Mkvcbuild.pm

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package Mkvcbuild;
33
#
44
# Package that generates build files for msvc build
55
#
6-
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.39 2009/04/07 19:35:57 mha Exp $
6+
# $PostgreSQL: pgsql/src/tools/msvc/Mkvcbuild.pm,v 1.40 2009/06/05 18:29:56 adunstan Exp $
77
#
88
use Carp;
99
use Win32;
@@ -104,14 +104,16 @@ sub mkvcbuild
104104
}
105105
}
106106
$plperl->AddReference($postgres);
107-
if (-e$solution->{options}->{perl} .'\lib\CORE\perl510.lib')
107+
my@perl_libs =grep {/perl\d+.lib$/ }
108+
glob($solution->{options}->{perl} .'\lib\CORE\perl*.lib');
109+
if (@perl_libs == 1)
108110
{
109-
$plperl->AddLibrary($solution->{options}->{perl} .'\lib\CORE\perl510.lib');
110-
}
111-
else
112-
{
113-
$plperl->AddLibrary($solution->{options}->{perl} .'\lib\CORE\perl58.lib');
111+
$plperl->AddLibrary($perl_libs[0]);
114112
}
113+
else
114+
{
115+
die"could not identify perl library version";
116+
}
115117
}
116118

117119
if ($solution->{options}->{python})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp