develooper Front page | perl.perl5.porters | Postings from November 2013

Option to use and create "unique" library names

Thread Next
From:
Brian Fraser
Date:
November 20, 2013 05:42
Subject:
Option to use and create "unique" library names
Message ID:
CA+nL+nZMan+aMNUzC6NV_u9Y96ppuv4ULfgrWETb4Njhw5Mw+g@mail.gmail.com
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 Util.so, 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/Util.so becomes Hash/Util/Perl_Hash_Util.so.

The changes for this are in
http://perl5.git.perl.org/perl.git/shortlog/refs/heads/hugmeir/d_libname_uniqueand
can be tested by compiling perl with -Dd_libname_unique.

Any objections to this going in?

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