This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
use_versioned_archname => versionedarchname
authorH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Fri, 15 Feb 2013 14:15:06 +0000 (15:15 +0100)
committerH.Merijn Brand - Tux <h.m.brand@xs4all.nl>
Fri, 15 Feb 2013 14:15:06 +0000 (15:15 +0100)
commita4afc8002f3e33253022dfbbc51b2fee8a0f9aad
tree0216a878c60666492b46a3b6d4311fad0b6d3eb0
parent63f38a4246bc3fabbdfed0cd793c5d2fd75b24ae
use_versioned_archname => versionedarchname

backport of ba95ddbf39c3f4434439

This patch adds 'use_versioned_archname' as a Configure option.
When set, it includes 'api_versionstring' in 'archname'. E.g.
x86_64-linux-5.13.6-thread-multi.  It is unset by default.

This feature was requested by Tim Bunce, who observed that
INSTALL_BASE creates a library structure that does not
differentiate by perl version.  Instead, it places architecture
specific files in "$install_base/lib/perl5/$archname".  This makes
it difficult to use a common INSTALL_BASE library path with
multiple versions of perl.

By setting -Duse_versioned_archname, the $archname will be
distinct for architecture *and* API version, allowing mixed use of
INSTALL_BASE.

This patch demonstrates the desired effect for discussion.  Actual
changes would need to be made upstream in metaconfig and
integrated back into blead.
U/threads/archname.U