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

Reply via email to