develooper Front page | perl.perl5.porters | Postings from September 2011

RE: generating win32/config_H.*

Thread Previous | Thread Next
Jan Dubois
September 1, 2011 11:13
RE: generating win32/config_H.*
Message ID:
On Thu, 01 Sep 2011, Steve Hay wrote:
> H.Merijn Brand wrote on 2011-09-01:
> There are numerous __GNUC__ tests throughout the VC++ files to support
> building XS extensions with GCC in a perl (e.g. ActivePerl) that was
> built with VC++, and likewise numerous _MSC_VER tests throughout the GCC
> files. I don't really have a plan for handling them at the moment, other
> than manually restoring them each time they've been regenerated by
> win32/config_h.PL...
> (Are there any precedents outside of Win32 for anything similar?)

I don't think so. The Perl source distribution generally supports only
building from source, on the target platform, and with the same compiler
that will be used to build additional XS extensions.

It is binary Perl distributions, like ActivePerl, or Apple's Perl, that
support multiple configurations, selected at runtime, from a single
installation of Perl.  Most of the runtime adaption does happen at the
Config.h level though, and not in the C level headers.

I was planning to write a longer reply to this issue in the "is MULTIARCH
useless" thread, which is actually strongly related to this issue.  I
just haven't found the time yet.


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