meson/msys2 fails with plperl/Strawberry - Mailing list pgsql-hackers

From Andrew Dunstan
Subject meson/msys2 fails with plperl/Strawberry
Date
Msg-id 9d6751ad-c5fd-b267-c25d-e88f876c8860@dunslane.net
Whole thread Raw
Responses Re: meson/msys2 fails with plperl/Strawberry  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers

Hi,


config/perl.m4 contains this:


AC_MSG_CHECKING(for flags to link embedded Perl)
if test "$PORTNAME" = "win32" ; then    perl_lib=`basename $perl_archlibexp/CORE/perl[[5-9]]*.lib .lib`    if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then        perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"    else        perl_lib=`basename $perl_archlibexp/CORE/libperl[[5-9]]*.a .a | sed 's/^lib//'`        if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then            perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"        fi    fi
else    pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`    pgac_tmp2=`$PERL -MConfig -e 'print "$Config{ccdlflags} $Config{ldflags}"'`    perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%"`
fi
AC_SUBST(perl_embed_ldflags)dnl

I don't see any equivalent in meson.build of the win32 logic, and thus I am getting a setup failure on fairywren when trying to move it to meson, while it will happily build with autoconf.

I would expect the ld flags to be "-LC:/STRAWB~1/perl/lib/CORE -lperl532"

(Off topic peeve - one of the things I dislike about meson is that the meson.build files are written in YA bespoke language).


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com

pgsql-hackers by date:

Previous
From: Jim Jones
Date:
Subject: Re: [PATCH] Add XMLText function (SQL/XML X038)
Next
From: Tomas Vondra
Date:
Subject: Re: hio.c does visibilitymap_pin()/IO while holding buffer lock