make_ext.pl: Phase out the use of Cross.pm
authorBrian Fraser <fraserbn@gmail.com>
Wed, 13 Nov 2013 03:02:41 +0000 (00:02 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Wed, 22 Jan 2014 16:08:22 +0000 (13:08 -0300)
commit4b22620880a7e86cd65571b97f365bf0e5736473
treebddfc46fca024e16331991e52c969e40cd1b40f4
parent3c32af271d49f3c027fd33194d2508a5bf362931
make_ext.pl: Phase out the use of Cross.pm

In the old cross-compilation model, lib/ for the target would
end up in xlib/; What Cross.pm did back then was change @INC
around a bit to have miniperl point to xlib; Additionally, it
was used to identify cross-compilation builds, and in make_ext.pl
to detect whenever a Makefile was from the host's build.

There is no longer any need for the first, and the second is now
a simple check for $Config{usecrosscompile}, it's still
possible for the hosts' Makefiles to be there, particularly
if the host was not compiled elsewhere using -Dmksymlinks,
like in Windows when targetting WinCE.

This commit changes make_ext.pl for cross-compiling builds
to only delete Makefiles when their CC != $Config{cc}.
make_ext.pl