pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix msvc builds for ActivePerl > 5.24
Date: Sat, 3 Mar 2018 00:00:21 -0800
Message-ID: <20180303080021.GA1758858@rfd.leadboat.com> (raw)
In-Reply-To: <E1erj56-0005YT-W1@gemulon.postgresql.org>
References: <E1erj56-0005YT-W1@gemulon.postgresql.org>

On Fri, Mar 02, 2018 at 11:42:32AM +0000, Magnus Hagander wrote:
> Fix msvc builds for ActivePerl > 5.24

> --- a/src/tools/msvc/Mkvcbuild.pm
> +++ b/src/tools/msvc/Mkvcbuild.pm
> @@ -524,9 +524,11 @@ sub mkvcbuild
>  		my $perl_path = $solution->{options}->{perl} . '\lib\CORE\*perl*';
>  
>  		# ActivePerl 5.16 provided perl516.lib; 5.18 provided libperl518.a
> +		# Starting with ActivePerl 5.24, both  perlnn.lib and libperlnn.a are provided.
> +		# In this case, prefer .lib.

Sounds reasonable, but ...

>  		my @perl_libs =
>  		  grep { /perl\d+\.lib$|libperl\d+\.a$/ } glob($perl_path);
> -		if (@perl_libs == 1)
> +		if (@perl_libs > 0)
>  		{
>  			$plperl->AddLibrary($perl_libs[0]);
>  		}

... the behavior doesn't match the comment.  By default, glob() sorts by ASCII
value, so @perl_libs = qw(libperl524.a perl524.lib).




view thread (3+ messages)  latest in thread

Message-ID: <20180303080021.GA1758858@rfd.leadboat.com>
Permalink:  ../20180303080021.GA1758858@rfd.leadboat.com/
Also on:    postgresql.org/message-id/20180303080021.GA1758858@rfd.leadboat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com, magnus@hagander.net
  Subject: Re: pgsql: Fix msvc builds for ActivePerl > 5.24
  In-Reply-To: <20180303080021.GA1758858@rfd.leadboat.com>
  References: <E1erj56-0005YT-W1@gemulon.postgresql.org> <20180303080021.GA1758858@rfd.leadboat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox