develooper Front page | perl.perl5.porters | Postings from January 2014

Re: Option to use and create "unique" library names

Thread Previous | Thread Next
Brian Fraser
January 7, 2014 05:37
Re: Option to use and create "unique" library names
Message ID:
On Wed, Nov 20, 2013 at 2:41 AM, Brian Fraser <> wrote:

> Background:
> Android's linker has some bugg^Wunusual behavior, in that it caches loaded
> libraries, but only uses the basename in the cache.  That means that,
> as far as its dlopen() is concerned, the libraries for Hash::Util and
> List::Util,
> both of which are named, are the same.
> What we did in the android branch was introduce an option,
> d_libname_unique,
> that when defined, has Makemaker create an "unique" libname for each
> module,
> and teaches XSLoader and Dynaloader to look for those; So for example,
> Hash/Util/ becomes Hash/Util/
> The changes for this are in
> can be tested by compiling perl with -Dd_libname_unique.
> Any objections to this going in?
To follow up on this, the revised version is now on blead, but I did not
merge the changes to Module::Build and MakeMaker, so currently compiling
with -Dd_libname_unique will fail two of Module::Build's tests; the
necessary fixes are already in the respective githubs[0][1], so the tests
with -Dd_libname_unique will start passing once those get merged back to


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About