Long term maintenance of cross-build support for the Debian configuration of perl has now gained some code at
github and an
ITP: #694326 for Debian.
There's some working code for perl 5.14 and initial work on 5.16 (which isn't complete yet).
This will dramatically simplify the patch for
#633884 and provide a base for getting another part of that patch into upstream (Makefile.SH). (Thanks to Steve McIntyre & Peter Pearse for the body of the patch itself.)
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
define variant
$(if $(findstring static,$1),static,$(if $(findstring debug,$1),debug,shared))
endef
define cross-config
/usr/bin/perl-cross-debian --variant $(call variant,$@)
perl -Ilib make_patchnum.pl
endef
endif
So the config*variant files will live in /usr/share/perl-cross-debian/$arch/$perl_version/