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

Option to use and create "unique" library names

Thread Next
Brian Fraser
November 20, 2013 05:42
Option to use and create "unique" library names
Message ID:
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
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?

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