develooper Front page | perl.perl5.porters | Postings from April 2008

Linking with DynaLoader and ExtUtils::Embed::ldopts since 5.10

Thread Next
From:
Reini Urban
Date:
April 26, 2008 14:22
Subject:
Linking with DynaLoader and ExtUtils::Embed::ldopts since 5.10
Message ID:
6910a60804261422o681241b5s188f512cd65a5fb0@mail.gmail.com
How do you folks link against DynaLoader since 5.10?

The DynaLoader makefile was changed not to emit a
lib/auto/DynaLoader/DynaLoader$(LIB_EXT)
anymore, instead just copy to a DynaLoader$(OBJ_EXT), which is linked
against perl,
but not installed to <archlib>/CORE and not to
lib/auto/DynaLoader/DynaLoader$(OBJ_EXT) neither.

So ExtUtils::Embed::ldopts cannot find DynaLoader.a anymore (and does
not look for the .o file neither)
and so all attempts to link standalone files do fail.

There's also no testcase for ExtUtils::Embed::ldopts usage,
I just got the failures in B::C. Other embedders will fail also.

If I overlooked something (with my cygwin specialities) I stand
corrected, otherwise I'll happily provide a patch to fix
the wrong static section in ext/DynaLoader/Makefile.PL to generate the
archive again.
-- 
Reini Urban

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About