Chris,
Something else I've just noticed is that in the OpenGL Makefile.PL we have:
# Detect MINGW
our $IS_MINGW = 0;
if ($^O eq 'MSWin32' && !$IS_CYGWIN)
{
$IS_MINGW = (($Config{make} =~ /\bdmake/i) && ($Config{cc} =~ /\bgcc/i));
print "Build platform \$IS_MINGW==$IS_MINGW\n" if $IS_MINGW and $verbose;
}
As of perl-5.24.0 it is possible to build perl on MSWin32 with MinGW such
that $Config{make} is gmake. (This is precisely what I have done, though I
think Strawberry Perl has stayed with dmake.)
It was a rather strange check to begin with.
For one thing, the condition that $^O eq 'MSWin32' implies that the
condition !$IS_CYGWIN will be met (afaict) - so specifying both was
overkill.
I think this should suffice:
# Detect MINGW
our $IS_MINGW = 0;
if ($^O eq 'MSWin32')
{
$IS_MINGW = (($Config{make} !~ /\bnmake/i) && ($Config{cc} =~ /\bgcc/i));
print "Build platform \$IS_MINGW==$IS_MINGW\n" if $IS_MINGW and $verbose;
}
In fact, I don't think we even need to concern ourselves with the value of
$Config{make}. Just knowing that the OS is 'MSWin32' && that $Config{cc} is
'gcc' should be enough to imply 'mingw'.
So, unless I've overlooked something, we could correctly detect mingw with
simply:
# Detect MINGW
our $IS_MINGW = 0;
if ($^O eq 'MSWin32' && $Config{cc} =~ /\bgcc/i)
{
$IS_MINGW = 1;
print "Build platform \$IS_MINGW==1" if $verbose;
}
With this change in place (and with the patch I sent in my previous post)
opengl-0.6704_02 builds and tests fine for me with perl-5.24.0.
Cheers,
Rob
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general