In perl.git, the branch smoke-me/andyd-multiarch has been created
<http://perl5.git.perl.org/perl.git/commitdiff/c0422de919db637cc36ed9e2d9d616578f8fa560?hp=0000000000000000000000000000000000000000>
at c0422de919db637cc36ed9e2d9d616578f8fa560 (commit)
- Log -----------------------------------------------------------------
commit c0422de919db637cc36ed9e2d9d616578f8fa560
Author: Andy Dougherty <[email protected]>
Date: Tue Sep 4 17:13:34 2012 -0400
Fix alignment for darwin with -Dusemorebits.
By default, the darwin build assumes a "multiarchitecture" build.
Configure has a hardwired default of '8' for alignbytes (and then
proceeds to ignore it with another hard-wired '8' in config.h).
That '8' was supposed to be a safe value, in case perl was built
on one architecture but run on another with a stricter constraint.
With darwin and -Dusemorebits, however, the alignment should be on
16-byte boundaries. We don't want to penalize all darwin builds for
this unlikely configuration, but we do want to allow it.
This patch causes Configure to compute alignbytes even for multiarch
builds, but if the result is less than 8, it sets it to 8 (which preserves
the previous behavior). If, however, alignbytes is 16, Configure won't
decrease it. Then, this patch also fixes config_h.SH so that it uses
the value determined by Configure instead of the previous hardwired value.
-----------------------------------------------------------------------
--
Perl5 Master Repository